从wap源码中能了解到什么?

其实代码很简单,就是首先,

& ltwml & gt& lt/wml & gt;形成一个WAP框架。

& ltmeta http-equiv = " Cache-Control " content = " max-age = 0 "/& gt;表示一些页面设置。

& ltCard id="bug" title= "Read post " >因为wap是通过手机访问的,所以一个屏幕文本,称为卡片,设置了卡片标题。

& ltp & gt& lt/p & gt;文本内容

& lta href = " " " & gt接口※

-

下面是常用的WML模板代码:

& lt?XML version = " 1.0 " encoding = " GB 2312 "?& gt

& lt!DOCTYPE WML PUBLIC "-//WAPFORUM//DTD WML 1.1//EN " " http://www . WAPFORUM . org/DTD/WML _ 1.1 . XML " & gt;

& ltwml & gt

& lt卡id="Main" title="WAP代码示例">

& ltp align="center " >

& ltb & gt中国是爱在一线

& lt/p & gt;

& ltp align="left " >

《被爱中国才能在线》专注于WAP领域(WAP开发、软件、网站、企业行业应用等。).欢迎各界人士与我们携手共创WAP。

太棒了。

& lt/p & gt;

& ltp align="center " >

& ltbr/>;

& ltsmall & gtwww . bicyle . org & lt;/small & gt;

& lt/p & gt;

& lt/card & gt;

& lt/wml & gt;

WML框架模板代码(*。wml)

& lt?XML version = " 1.0 " encoding = " GB 2312 "?& gt

& lt!DOCTYPE WML PUBLIC "-//WAPFORUM//DTD WML 1.1//EN " " http://www . WAPFORUM . org/DTD/WML _ 1.1 . XML " & gt;

& ltwml & gt

& ltcard id = " first card " title = " WAP . bicyle . org " & gt。

& ltp align="center " >

请把文字写在这里。& ltbr/>;

& lta href = " http://WAP . bicyle . org " & gt;欢迎来到中国,在这里你可以在网上被爱

& lt/p & gt;

& lt/card & gt;

& lt/wml & gt;

ASP+WML框架(*。asp)

& lt%回应。content type = " text/vnd . WAP . wml " % & gt;

& lt?XML version = " 1.0 " encoding = " GB 2312 "?& gt

& lt!DOCTYPE WML PUBLIC "-//WAPFORUM//DTD WML 1.1//EN " " http://www . WAPFORUM . org/DTD/WML _ 1.1 . XML " & gt;

& ltwml & gt

& ltcard id = " first card " title = " WAP . bicyle . org " & gt。

& ltp align="center " >

欢迎来到< br/>;

& lta href = " http://WAP . bicyle . org " & gt;中国可以在网上被爱

& lt% = Date()% & gt;

& lt/p & gt;

& lt/card & gt;

& lt/wml & gt;

ASP+XHTML框架(*。asp)

& lt?xml版本="1.0 "编码="UTF-8 "?& gt& lt!DOCTYPE html PUBLIC "-//WAP forum//DTD XHTML Mobile 1.0//EN " " http://www . WAP forum . org/DTD/XHTML-Mobile 10 . DTD " & gt;

& lthtml xmlns = " http://www . w3 . org/1999/XHTML " & gt;

& lthead & gt

& lttitle & gt中国可以在网上被爱

& ltmeta http-equiv = " Content-Type " Content = " text/html;charset=UTF-8"/>

& lt/head & gt;

& ltbody & gt

& lt/body & gt;

& lt/html & gt;

ASPX+WML框架(*。aspx)

& lt% @ Page Language = " VB " AutoEventWireup = " false " % & gt;

& lt%回应。content type = " text/vnd . WAP . wml " % & gt;

& ltscript language = " VB " runat = " server " & gt;

函数Add(Byval a为整数,Byval b为整数)为整数

返回a+b

结束功能

& lt/script & gt;

& lt?xml版本="1.0 "编码="Utf-8 "?& gt

& lt!DOCTYPE WML PUBLIC "-//WAP forum//DTD WML 1.1//EN " " http://www . WAP form . org/DTD/WML _ 1.1 . XML " & gt;

& ltwml & gt

& lthead & gt

& ltmeta http-equiv = " Cache-Control " content = " max-age = 300 " forua = " true "/& gt;

& lt/head & gt;

& ltCard ID = "bike-bicycle" title = "被爱可以" newcontext = " false " & gt

& ltp align="left " >

& lt!-(o)以下是文件# # # # # # # # # # # # # # # # #的文本->

华爱在线可以专注于WAP领域,WAP软件,网页,企业行业应用等等。& ltbr/>;

& lta title = " OK " href = " http://WAP . bicycle . org " >网上可以爱中国

1981+1982=

& lt%=Add(1981,1982)% & gt;

& ltbr/>;

& lt!-(o)以下是关于返回链接的一些信息# # # # # # # # # # #->

& ltA title= "OK" href="Index.asp">。返回上级

& lt/p & gt;

& lt/card & gt;

& lt/wml & gt;