What you should already know
你应该已经掌握的知识
Before you continue you should have a basic understanding of the following:
在你继续下面的学习之前,你必须对下面的知识有一个基本的了解:
- HTML
- JavaScript
- WML
If you want to study these subjects first, find the tutorials on our Home page.
如果你想先学习上述知识,请登入我们的教程首页。
What is WML?
什么是WML?
WML stands for Wireless Markup Language. It is a mark-up language inherited from HTML, but WML is based on XML, so it is much stricter than HTML.
WML是指(无线标记语言Wireless Markup Language),它是一种标记语言,这继承了HTML的特点,然而它又是基于XML语言的,所以他比HTML更严谨。
WML is used to create pages that can be displayed in a WAP browser. Pages in WML are called DECKS. Decks are constructed as a set of CARDS.
WML的作用是:建立可以被wap浏览器显示的页面。以WML建立的页面称为“卡片组DECKS”,“DECKS”是一组“卡片CARDS”构成的。
What is WMLScript?
究竟什么是WMLScript呢?
- WMLScript is the scripting language used in WML pages
WMLScript是一种用于编写WML页面(page)的脚本语言。 - WMLScript is a light version of the JavaScript language
WMLScripe是JavaScript脚本语言的一个低级版本。 - WML scripts are not embedded in the WML pages. WML pages only contains references to script URLs
WML 页面并不包含WML脚本语言,它只拥有URLs的脚本参数。 - WMLScript is compiled into byte code on the server before it is sent to the WAP browser
WMLScript在发送到WAP浏览器之前将事先在服务器端编译成字节代码。 - WMLScript is a part of the WAP specification
WMLScript是WAP规范的一部分
What is WMLScript used for?
那么,WMLScript又是用来干什么的呢?
- WMLScript is used to validate user input
WMLScript的作用是验证用户输入的有效性。 - WMLScript is used to generate message boxes and dialog boxes locally, to view error messages and confirmations faster
WMLScript的作用是在本机上产生信息框(message box)和对话框(dialog box);它可以查看错误信息并快速的确认信息。 - WMLScript is used to access facilities of the user agent
WMLScript是用来访问用户代理机的便利工具。