WML知識歸納助記

[b]一. WML語法基礎[/b]
文件頭:
主體: <wml></wml>
頁面: <card></card> 一個文件(deck)可以有多個頁面<card>
段落: <p>
字體:<b> <i> <u> <em> <strong> <big> <small>
換行: <br>
特殊字符: 引號 [color=red]quot[/color] 省略號 [color=red]apos[/color] & [color=red]amp[/color] 小於 [color=red]lt[/color] 大於 [color=red]gt[/color] 連字符 [color=red]shy [/color] 空格 [color=red]nbsp[/color]
鏈接: <anchor><go href=""></anchor> <a href=""></a>
返回: <pre>
取消返回: <do type="prev"> [color=red]<noop/> [/color]</do>
表格: <table columns="3" align="LRC">
圖像: <img src="../.wbmp">

[b]二. WML用戶交互部分[/b]
模板: <template></template>之間的所有內容都會插入顯示到資料夾的每一張<card>上
do元素: <do type="accept|prev|help|reset|option|delete|unknown">
選擇單元: <select > <option/> </select>
事件: <onevent type="oneventforward|oneventbackward|ontimer|onpick"> </onevent>
變量: <setvar name="" value="">只能在<go><prev><refresh>元素中,<refresh>只能在<onevent>或<do>中
URL編碼與解碼: 編碼轉義:[color=red]$(變量名:e)$(變量名:E)$(變量名:escape)[/color]
解碼轉義:[color=red] $(變量名:u)$(變量名:U)$(變量名:unesc)[/color]
輸入: <input type="text|password"/>
傳送數據: <go method="post|get" href=""><postfield name="" value="" /> </go>
數據分組: <fieldset></fieldset>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章