网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: WAP :: WML < noop >标签

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

WML < noop >标签


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-29 浏览:670 :: ::

The <noop> task says that nothing should be done (noop stands for "no operation"). This tag is used to prevent an event from occurring.
<noop>表示不执行任何操作(noop即:no operation)。这个标签使用于阻止事件发生的。

Note: The <noop> tag can be inside a <do> or an <onevent> tag.
注意:<noop>标签可以写在<do>中或<onevent>标签中。

Syntax
语法

<noop/>

Attributes
属性

属性 描述
class cdata Sets a class name for the element. The class name is case sensitive. An element can be connected to multiple classes. Multiple class names within the class attribute are separated by white space
为元素设置一个类名称。类名称是字母大小写不敏感的。一个元素可以被连接到多个类中。类属性中的多个类名称是通过空白符进行分隔的
id id Sets a unique name for the element
为元素设置一个独立的名称

Example
案例

The example below uses a <do> tag to add a "Back" link to the card. When the user clicks on the "Back" link, he or she should be taken back to the previous card. But the <noop> tag prevents this operation; when the user clicks on the "Back" link nothing will happen:

在下面的案例中,我们使用<do>标签将卡片中添加了一个“Back”连接。当用户点击“Back”连接时,他/她将会返回上一张卡片。但是<noop>标签阻止了这一操作;当用户点击“Back”连接时,并为执行“Back[返回]”操作:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
<card>
<p>
 <do type="prev" label="Back">
  <noop/>
 </do>
</p>
</card> 
</wml> 

评论 (0) All