No visible cause for “Unexpected token ILLEGAL”

后端 未结 11 2264
轻奢々
轻奢々 2020-11-22 00:09

I\'m getting this JavaScript error on my console:

Uncaught SyntaxError: Unexpected token ILLEGAL

This is my code:

11条回答
  •  青春惊慌失措
    2020-11-22 01:00

    I changed all space areas to  , just like that and it worked without problem.

    val.replace(" ", " ");

    I hope it helps someone.

提交回复
热议问题