当前位置: 首页 > 网络学院 > XML相关教程 > WAP > <access>
The <access> tag defines information about the access control of a WML deck.
<access>标签定义了关于WML平台控制访问信息。
Note: If the <access> tag is not set, any other decks/cards can access the deck.
注意:如果<access>标签未被设置,那么其它平台/卡片都可以访问这个平台。
Note: The <access> tag always goes inside the <head> tag. Each deck can have only one <access> tag.
注意:<access>标签总是写在<head>标签内的。每个平台都可以包含一个<access>标签。
<head> <access/> </head> |
属性 | 值 | 描述 |
---|---|---|
domain | cdata | The URL of other decks that can access cards in the deck 指定用于访问平台内卡片的其它平台的URL |
path | cdata | The URL of other decks that can access cards in the deck 指定用于访问平台内卡片的其它平台的URL |
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 为元素设置一个独立的名称 |
Access is limited to other decks/cards in www.ruanchen.com: <head> <access domain="www.ruanchen.com"/> </head> Access is limited to other decks/cards in www.ruanchen.com/tech/school/wap: <head> <access domain="www.ruanchen.com" path="/wap"/> </head> |