在js文件中写下如下函数
function check_SJH(TextPhoneID)
{
var tmp = eval("document.all." + TextPhoneID + ".value");
var space = /^135|136|137|138|139\d{8}$/;
if (space.test(tmp))
alert("是移动号码");
else alert("非移动号码");
}
总是提示我第二行有未结束的字符串常量,这一行(var space = /^135|136|137|138|139\d{8}$/;)