特殊字符验证,电话手机验证

/*特殊字体验证 */

var checkaddr = /\/|~|\~|\—|#|:|\s|!|!|@|¥|\$|%|\^|&|\*|\||?|\?|<|>/;


/*手机验证 电话验证*/
var checktel=/^(\d{3}-?)(\d{8})$|^(\d{4}-?)(\d{7})$|^(\d{4}-?)(\d{8})|(\d{8})|(\d{7})$/,


checkphone=/^1\d{10}$/,

posted @ 2017-12-28 17:16  幽竹小妖  阅读(359)  评论(0编辑  收藏  举报