首页 > Linux操作系统 > Linux操作系统 > WML教程7:WML的事件(转)
wml 的事件
内部事件(onevent)
相关属性:
type:内部事件的触发条件,当前浏览器状态满足触发条件时,浏览器就会触发这个条件下设置的task,内部事件总共有4种触发条件。
1 ontimer 满足时钟设置的条件时,该条件成立。关于时钟设置问题,后面还有专门的说明。
2 onenterbackward 通过prev或其他外部命令返回到当前card,该条件成立。
3 onenterforward 当浏览器通过链接进入当前card,该条件成立
4 onpick 在使用option控件列表的时候,任何点击控件的行为都会触发本事件,包括选择和去掉选择。
示例:
<!-- this deck can't use in ericsson r320sc ,because r320sc haven't accept button-->
this is the first card.
this is the second card.
this is the thired card.
haha, you are lost!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10294527/viewspace-125125/ ,如需转载,请注明出处,否则将追究法律责任。