javascript Firebug error: Identifier starts immediately after numeric literal

后端 未结 5 1286
我寻月下人不归
我寻月下人不归 2020-12-17 20:28

I\'ve got this error being reported in firebug, but I have no idea what it means:

Identifier starts immediately after numeric literal

Here is my webpage: htt

5条回答
  •  生来不讨喜
    2020-12-17 21:11

    Your string concatenation is broken. You need to wrap your method parameters in quotes

    var statusForm = ' option A  |   options B';
    From here ----------------------------------------------------------------------------^
    

    Corrected version

    var statusForm = ' option A'
    

    Note : I've treated all your params as strings

提交回复
热议问题