您的位置:首页 > 其它

uncaught typeerror, var test.match is not a function.

2015-07-05 19:55 585 查看
使用 typeof 查看变量类型。

例如  alert(typeof(testvar));

若是boolean类型,直接用 if(test){  //do one thing }else{  //do another thing }  来使用。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: