Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/luoluo/zhky/blame/commit/a412254b69d4c5ea06dae44db354fd33adde3b33/web/css/emailFormat.htc You should set ROOT_URL correctly, otherwise the web may not work correctly.
zhky/web/css/emailFormat.htc

25 lines
584 B

1 year ago
<public:component>
<public:attach event="onblur" onevent="itemOnBlur()" />
<public:method name="validate">
<script language="javascript">
function validate() {
if (element.value.length==0) return true;
//var pat = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
var pat = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
var ret = pat.exec(element.value);
if(!ret) {
alert("错误的Email地址格式!");
element.value="";
element.focus();
return false;
}
return true;
}
function itemOnBlur(){
validate();
}
</script>
</public:component>