javascript - SyntaxError:" identifier starts immediately after numeric literal" - Stack Overflow

I'm getting that error being reported in firebug:data = data + "&network=" + rowdata

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
Add a ment  | 

1 Answer 1

Reset to default 4

rowdata.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']

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745295230a4621099.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信