admin管理员组文章数量:1418695
I'm getting that error being reported in firebug:
data = data + "&network=" + rowdatawork + "&10xx=" + rowdata.10xx;
can anyone help me how to fix this error.
I'm getting that error being reported in firebug:
data = data + "&network=" + rowdatawork + "&10xx=" + rowdata.10xx;
can anyone help me how to fix this error.
Share Improve this question edited Jun 28, 2013 at 6:18 vstm 12.5k1 gold badge52 silver badges47 bronze badges asked Jun 28, 2013 at 6:14 arokiaarokia 251 silver badge9 bronze badges 1-
2
error being reported due to
rowdata.10xx
. This is not a valid JS. – som Commented Jun 28, 2013 at 6:17
1 Answer
Reset to default 4rowdata.10xx
is invalid JS. Dot notation access of properties uses identifiers and identifiers cannot start with a number. Either use a different property name:
rowdata.x10xx
or use square bracket notation, which lets you use strings instead of identifiers:
rowdata['10xx']
本文标签: javascriptSyntaxErrorquot identifier starts immediately after numeric literalquotStack Overflow
版权声明:本文标题:javascript - SyntaxError:" identifier starts immediately after numeric literal" - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745295230a2652035.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论