js 常用 正则

var regex=/(.).*(1)/; var str="a sa"; console.log(regex.test(str));  //判断用户输入是否有重复字符



原文地址:https://www.cnblogs.com/lansor/p/3286289.html