Uncaught SyntaxError: Unexpected identifier 未捕获的语法错误:意外的标志符

原因:
(1). ( 这两个符号的字体可能是中文
(2)少逗号,少分号。 比如:字符串类型,但是并没有加双引号。

document.getElementById('s3_selectCustomName').value=customName;
可能会出现上述错误。改正方法:
document.getElementById('s3_selectCustomName').value="customName";
这样即可!

猜你喜欢

转载自blog.csdn.net/love_parents/article/details/81941779