| function checkSpecialKey(str) { | 
|   if (str === null || str === undefined || str === "") return true; | 
|   const specialKey = `"[]%_!!~@'#¥%……&*():“;‘。’”+.,*-+|??();、\\^<>{}=/$` | 
|   let reg =  /^[0-9a-zA-Z]+$/ | 
|   for (let i = 0; i < str.length; i++) { | 
|     if (specialKey.indexOf(str.substr(i, 1)) === -1 && !reg.test(str[i])) { | 
|       return false; | 
|     } | 
|   } | 
|   return true; | 
| } | 
|   | 
| // 特殊字符交验 | 
| export function validateSpecialKey(rule, value, callback) { | 
|   if (!checkSpecialKey(value)) { | 
|     callback(new Error(`只可以输入数字、字母和英文符号`)); | 
|   } else { | 
|     callback(); | 
|   } | 
| } |