摘要
HTML5新增了13个新的表单输入类型及浏览器内置的表单验证功能为RIA Web应用提供了更好的支持。文中以典型的RIA开发平台Visual WebGui为参照基础,对HTML4和HTML5在实现表单输入和表单输入验证的代码简易度进行了研究。根据Visual WebGui应用程序在客户端产生的HTML4文件和脚本文件,得到了HTML4和JavaScript实现这些表单输入类型及其验证所需要的代码字符量,与HTML5实现这些表单输入类型及其验证所需要的代码字符量作比较,并据此得出HTML5新的表单输入类型极大地提高了RIA的客户端代码生成及客户端执行效率。
13 novel input types are introduced in HTML5 and browser internal form validation provides better support for RIA Web application. In this paper,Visual WebGui,which uses typical RIA as the developing platform,was taken as reference base,the simple degree of code that written to achieve the form input and form input validation using HTML4 and HTML5 is researched. According to HTML4 and JavaScript documents generated in client side, calculate code that written to implement the form input and form input validation using HT- MIA-, comparing the amount of code with another amount of code that written to implement the form input and form input validation using HTML5, reach a conclusion that new HTML5 input type for forms dramatically improve the efficiency of code generation and execu- tion in client.
出处
《计算机技术与发展》
2012年第5期137-140,共4页
Computer Technology and Development
基金
山东省自然科学基金(ZR2011FM001)