...
首页> 外文期刊>Web techniques >Validating Forms with Regular Expressions
【24h】

Validating Forms with Regular Expressions

机译:使用正则表达式验证表单

获取原文
获取原文并翻译 | 示例
           

摘要

Many developers use client-side JavaScript to test and validate data that customers enter into forms. Why send data to the server if you can determine its validity at the browser? Unfortunately, most of the JavaScript validation schemes I've seen have been very inflexible. For instance, many scripts validate data when the customer submits the form, but only a few provide instant feedback while the user enters data. And many scripts are customized to a specific form so that each change to the form requires more work on the developer's part, adding and deleting code from a single, monolithic validation function.
机译:许多开发人员使用客户端JavaScript来测试和验证客户输入到表单中的数据。如果可以在浏览器中确定数据的有效性,为什么要将数据发送到服务器?不幸的是,我见过的大多数JavaScript验证方案都非常僵化。例如,许多脚本在客户提交表单时验证数据,但是只有少数脚本在用户输入数据时提供即时反馈。而且许多脚本都针对特定的表单进行了自定义,因此对表单的每次更改都需要开发人员方面的更多工作,即从单个整体验证功能中添加和删除代码。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号