JavaScript技术利用正则表达式验证表单的探讨  被引量:5

JavaScript Technology Uses Regular Expressions to Verify Forms

在线阅读下载全文

作  者:杨花雨[1] 李银地 YANG Hua-yu;LI Yin-di(Shangqiu Institute of Technology,shangqiu 476000,China)

机构地区:[1]商丘工学院

出  处:《电脑知识与技术》2019年第8X期22-24,共3页Computer Knowledge and Technology

摘  要:在WEB前端开发设计中表单常用于收集用户输入的信息,用户输入的信息在被传输到服务器时需要对其进行验证,表单信息通常需要使用JavaScript技术来验证。该文使用JavaScript技术,利用正则表达式,完成文本字符串的检测、替换等功能。给出了在实现用户注册页面中表单验证的过程中,设置每个表单元素的JavaScript技术验证方法,并分析了每个正则表达式的具体定义及应用方法。Forms are often used to collect user input information in WEB front-end development and design.User input information needs to be validated when it is transmitted to the server.Form information usually needs to be validated by JavaScript technology.This paper uses JavaScript technology and regular expression to complete the functions of text string detection and replacement.In the process of form validation in user registration page,the JavaScript technology validation method of setting each form element is given,and the concrete definition and application method of each regular expression are analyzed.

关 键 词:WEB前端 表单验证 JAVASCRIPT 正则表达式 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象