var ipVerification = /^(?:(?:1[0-9][0-9]\.)|(?:2[0-4][0-9]\.)|(?:25[0-5]\.)|(?:[1-9][0-9]\.)|(?:[0-9]\.)){3}(?:(?:1[0-9][0-9])|(?:2[0-4][0-9])|(?:25[0-5])|(?:[1-9][0-9])|(?:[0-9]))$/;
if(!ipVerification.test(moduleIP)){
zeroModal.alert('IP地址格式不正确!');
return;
}

posted on 2017-07-14 15:23  素雅柠檬  阅读(2061)  评论(0编辑  收藏  举报