// 正则校验
const exp = {
// DNS,IP
ip: /^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/,
mac: /^(([a-fA-F0-9]{2}:)|([a-fA-F0-9]{2}-)){5}[a-fA-F0-9]{2}$/,
netmask: /^(254|252|248|240|224|192|128|0)\.0\.0\.0$|^(255\.(254|252|248|240|224|192|128|0)\.0\.0)$|^(255\.255\.(254|252|248|240|224|192|128|0)\.0)$|^(255\.255\.255\.(254|252|248|240|224|192|128|0))$/,
domain: /^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/,
// 数字字母下划线
name:/^[0-9a-zA-Z@._-]{1,32}$|^[0-9a-zA-Z\u4E00-\u9FA5@._-]{1,10}$/,
name: /^([\u4E00-\u9FA5]|[0-9a-zA-Z@._-]{1,4}){1,8}$/,
password:/^[a-zA-Z0-9]{8,16}$/,
password_1: /^(?=.*[A-Za-z])(?=.*\d)(?=.*[\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\x7e])[A-Za-z\d\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\x7e]{8,32}$/,
// 请输入8-32位以内的密码( 特殊字符仅支持 @#$^&*+._- )
password_2: /^[A-Za-z\d@#$^&*+._-]{8,32}$/,
}