当前位置: 首页 > 网络学院 > XML相关教程 > WAP > <prev>

WAP
WAP 介绍
WAP 基础知识
WML 格式化
WML 链接
WML Input
WML 任务
WML 计时器
WML 变量
WML 实例
Validate WML
WML 参考
WML 字符实体
WML DTD

WAP 中的 <prev>


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 292 ::
收藏到网摘: n/a

The <prev> task represents the action of returning to the previous card visited. If no previous URL exists, specifying <prev> has no effect.
<prev>任务表示后退到前一张一访问过的卡片区。如果前一张卡片的URL不存在,那么<prev>将无效。

Note: The content between the <prev>..</prev> tags is optional. If you do not specify any content, you must use <prev/>.
注意:<prev>..</prev>标签中的内容是可加可不加的。如果你未指定任何内容,那么你必须使用<prev/>。

Syntax
语法

<prev>
..<setvar>..
</prev>

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
案例

<?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="accept" label="Back"> <prev> <setvar name="x" value="30"/> </prev> </do>
</p>
</card>
</wml>

A <prev> tag with no content: 
不包含任何内容的<pre>标签:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card>
<do type="accept" label="Back"> <prev/>
</do>
<p>
Hello RuanChen!
</p>
</card>
</wml> 

评论 (0) All

登陆 | 还没注册?