isJSON: function(str){
if (!isString(str) || str === "") {
return false;
}
str = str.replace(/\\./g, "@").replace(/"[^"\\\n\r]*"/g, "");
return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);
}请高手详细解释一下
if (!isString(str) || str === "") {
return false;
}
str = str.replace(/\\./g, "@").replace(/"[^"\\\n\r]*"/g, "");
return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);
}请高手详细解释一下
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货