在chrome下运行编写的JS代码时,在控制台中报错: “Uncaught SyntaxError: Unexpected identifier ” 是由于代码中缺少一个 “,”(英文逗号) 。 转载于:https://www.cnblogs.com/SJBlog/p/6547437.html