var usernameReg = /^[a-zA-Z0-9_-]+$/用户名只能包括字母、数字、_ 、 -
var passwordReg =/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{2,}$/密码必须由数字和字母组成
var phoneReg =/^1[3|4|5|6|7|8]\d{9}$/手机号码
var mobileReg =/^\d{3,4}-?\d{7,9}$/固定电话
var emailReg = /^([0-9A-Za-z\-_\.]+)@([0-9a-z]+\.[a-z]{2,3}(\.[a-z]{2})?)$/g邮箱
var numReg = /^[0-9]+$/数字
var regUrl = /^(?=^.{3,255}$)(http(s)?:\/\/)?(www\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\d+)*(\/\w+\.\w+)*$/;
if(!regUrl.test(paramData.domainName)){
hintManager.showWarnHint("请输入合法的目标域名!");
return false;
}
var ipReg= /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;
if(!ipReg.test(paramData.ipAddress)){
hintManager.showWarnHint("请输入合法的ip地址!");
return false;
}