常用正则表达式 // 电话 var tel = /^(d{3,4})?[- ]?d{7,8}(-d{3,4})?$/; // 手机号 var mobile = /^0?([1][3,4,5,6,7,8,9])d{9}$/;