我的框架:表单验证 た 入场券 2022-09-19 10:52 163阅读 0赞 * 前端表单验证的用法 luxury.validate(\{ form:'<表单的Name>', //注意:不可以再有名字为Name的表单项了, <表单项的Name>:\{ //表单域的验证配置 \}, …... \}) 表单域参数 <table style="direction:ltr; border-collapse:collapse;border-style:solid;border-color:#A3A3A3;border-width: 1pt"> <tbody> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">at</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">判断时机</span><span style="font-family:Calibri">:keyup/blur>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:宋体">默认为</span><span style="font-family:Calibri">blur</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">successMsg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">验证成功后的提示</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">msgArea</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:SimSun">用于显示错误信息的块</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">可选</span><span style="font-family:Calibri">,</span><span style="font-family:SimSun">默认会在表单域后自动生成一个</span><span style="font-family:Calibri">Label(</span><span style="font-family: SimSun">红色</span><span style="font-family:Calibri">)</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">type</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">'text/radio'</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">可选</span><span style="font-family:Calibri">,</span><span style="font-family:SimSun">默认是</span><span style="font-family: Calibri">Text(</span><span style="font-family:SimSun">这可以处理</span><span style="font-family:Calibri">text</span><span style="font-family: SimSun">及</span><span style="font-family:Calibri">textarea)</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">blank</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">此文本域不允许为空的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">empty</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">此文本域的默认值</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">可选</span><span style="font-family:Calibri"><span style="mso-spacerun:yes"> </span>(</span><span style="font-family:SimSun">这东西其实是个</span><span style="font-family: Calibri">default)</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">reg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><</span><span style="font-family:宋体">正则验证表达式</span><span style="font-family:Calibri">></span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">regMsg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">不满足正则验证表达式时的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">如</span><span style="font-family:Calibri">reg</span><span style="font-family:SimSun">则必须</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">min</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><</span><span style="font-family:宋体">最小值</span><span style="font-family:Calibri">></span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">minMsg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">小于最小值时的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">如</span><span style="font-family:Calibri">min</span><span style="font-family:SimSun">则必须</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">max</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><</span><span style="font-family:宋体">最大值</span><span style="font-family:Calibri">></span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">maxMsg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">大于最大值时的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">如</span><span style="font-family:Calibri">max</span><span style="font-family:SimSun">则必须</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">minLength</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><</span><span style="font-family:宋体">最小长度</span><span style="font-family:Calibri">></span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">minLengthMsg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">短于最小长度的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">如</span><span style="font-family:Calibri">minLength</span><span style="font-family:SimSun">则必须</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">maxLength</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><</span><span style="font-family:宋体">最大长度</span><span style="font-family:Calibri">></span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">maxLengthMsg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">长于最大长度的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">如</span><span style="font-family:Calibri">maxLength</span><span style="font-family:SimSun">则必须</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">validator</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">function(v){ </p> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><span style="mso-spacerun:yes"> </span>//</span><span style="font-family:宋体">判断值是否有效的</span><span style="font-family: Calibri">JS</span><span style="font-family:宋体">代码</span></p> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><span style="mso-spacerun:yes"> </span>//</span><span style="font-family:宋体">返回</span><span style="font-family:Calibri">True</span><span style="font-family:宋体">表示有效</span></p> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><span style="mso-spacerun:yes"> </span>//</span><span style="font-family:宋体">返回字符串将作为提示出现</span></p> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">}</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">equal</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">对比域的</span><span style="font-family:Calibri">ID>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">equalMsg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">如果与对比域的值不同时的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">如</span><span style="font-family:Calibri">equal</span><span style="font-family:SimSun">则必须</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">ajax</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">{ </p> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><span style="mso-spacerun:yes"> </span>c:'<</span><span style="font-family:宋体">控制器名称</span><span style="font-family:Calibri">>',</span></p> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><span style="mso-spacerun:yes"> </span>a:'<</span><span style="font-family:宋体">方法名称</span><span style="font-family:Calibri">>',</span></p> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri"><span style="mso-spacerun:yes"> </span>p:<</span><span style="font-family:宋体">其它参数对象</span><span style="font-family: Calibri">></span></p> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">}</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:SimSun">额外会以</span><span style="font-family:Calibri">v</span><span style="font-family:SimSun">参数传递表单域的值</span><span style="font-family:Calibri">,</span><span style="font-family: SimSun">使用</span><span style="font-family:Calibri">ajaxOk/ajaxError</span><span style="font-family:SimSun">返回判断结果</span></p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">mustInt</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:SimSun">当文本域的值不是整数时的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">mustFloat</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:SimSun">当文本域的值不是浮点数时的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:1.0708in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">mustCurrency</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.8027in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:SimSun">当文本域的值不是货币时的提示信息</span><span style="font-family:Calibri">>'</span></p> <p style="margin:0in;font-size:10.0pt"><span style="font-family:宋体">注</span><span style="font-family:Calibri">:</span><span style="font-family:宋体">最多允许两位小数</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:4.2166in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> </tbody> </table> 如果指定了type=='radio',则只能使用以下属性 <table style="direction:ltr; border-collapse:collapse;border-style:solid;border-color:#A3A3A3;border-width: 1pt"> <tbody> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:.9069in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">blank</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.5013in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:SimSun">如果所有单选都未选择的提示信息</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:.7062in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:.9069in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">msgArea</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.5013in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:SimSun">用于显示错误信息的块</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:.7062in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">必须</p> </td> </tr> <tr> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:.9069in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:Calibri;font-size:10.0pt">successMsg</p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:2.5013in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-size:10.0pt"><span style="font-family:Calibri">'<</span><span style="font-family:宋体">验证成功后的提示</span><span style="font-family:Calibri">>'</span></p> </td> <td style="border-style:solid;border-color:#A3A3A3;border-width:1pt; vertical-align:top;width:.7062in;padding:4pt 4pt 4pt 4pt"> <p style="margin:0in;font-family:SimSun;font-size:10.0pt">可选</p> </td> </tr> </tbody> </table> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js\#style=-1&uuid=&pophcol=3&lang=zh"></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script> 阅读(238) | 评论(0) | 转发(0) | 0 上一篇:我的框架:模型 下一篇:我的框架:文件结构 相关热门文章 * IP Sec VPN与NAT破镜重圆 * 网站导航 * UT2.0正式版下载 * tomcat6.0配置(含配置视频下载... * Gomez中国网站用户体验排行榜(... * [LNMP 老是会出现502?][LNMP _502] * [suse 运用一个shell获取本机和...][suse _shell_...] * [虚拟机 unix 配置ip ][unix _ip] * [hp-un 主机新系统读不到磁盘阵...][hp-un _...] * [mysql出现问题:Starting MySQ...][mysql_Starting MySQ...] 给主人留下些什么吧!~~ 评论热议 [LNMP _502]: http://ask.chinaunix.net/question/785370 [suse _shell_...]: http://ask.chinaunix.net/question/785369 [unix _ip]: http://ask.chinaunix.net/question/292361 [hp-un _...]: http://ask.chinaunix.net/question/37122 [mysql_Starting MySQ...]: http://ask.chinaunix.net/question/4616
相关 CI框架学习之四(表单验证) 1、form头部信息的自动输出函数(view) <?php $attributes = array('class' => 'email', 'id' 曾经终败给现在/ 2022年08月07日 07:51/ 0 赞/ 201 阅读
相关 表单验证 应用 一、引入 <script src="Scripts/jquery-1.7.1.min.js"></script> <script src="Scripts/jqu 朱雀/ 2022年07月24日 06:28/ 0 赞/ 442 阅读
相关 表单验证 java script验证表单时常用: "^-\[0-9\]\\[1-9\]\[0-9\]\$" //负整数 "^-?//d+$" //整 ゝ一纸荒年。/ 2022年06月13日 07:54/ 0 赞/ 273 阅读
相关 表单验证 @Min(value = 18, message = " 不得小于18 ") private Integer age; / 表单验证 / ╰+攻爆jí腚メ/ 2022年06月05日 10:15/ 0 赞/ 272 阅读
相关 表单验证 angularjs 表单验证,包含必填、手机、邮箱、ip、网址等 基于angularjs自己封装的验证插件,之前的插件在angularjs上就不能使用了,然后将之前的封 淩亂°似流年/ 2022年06月04日 10:14/ 0 赞/ 265 阅读
相关 表单验证 表单验证为了减轻服务器的压力,请求次数减少,保证用户输入符合要求。 > 常用的表单验证 > \- 日期样式 > \- 表单内容是否为空 > \- 用户名和密码 梦里梦外;/ 2022年05月24日 04:40/ 0 赞/ 277 阅读
相关 表单验证 java script验证表单时常用: "^-\[0-9\]\\[1-9\]\[0-9\]\$" //负整数 "^-?//d+$" //整 小灰灰/ 2022年01月07日 14:35/ 0 赞/ 416 阅读
相关 Laravel框架 自带的 表单验证 (1) Laravel框架 在 提交 表单的时候 也会将 表单中 带有 name 属性的 input标签 生成对应的 请求参数(name为参数名,value为参数值)这些请求参 刺骨的言语ヽ痛彻心扉/ 2021年11月17日 06:20/ 0 赞/ 415 阅读
还没有评论,来说两句吧...