javascript中出现identifier starts immediately after numeric literal错误原因以及解决方法

javascript遇到参数是字符型和数字型组合的参数就会出现这种错误,例如alert(1);可以正確輸出alert(str);就會報錯
alert("str");可以正確輸出.

原文地址:https://www.cnblogs.com/jiayongchao/p/4087142.html