var str = 'dddd,aaaa';
var sear = new RegExp(',')
if(sear.test(str)){
console.log('yes');
}else{
console.log('no');
}
网友评论