unterminated string literal / Invalid or unexpected token

后端 未结 2 1838
無奈伤痛
無奈伤痛 2021-01-13 19:43

Why am I getting...

SyntaxError: unterminated string literal

...in Firefox and...

Uncaug

2条回答
  •  一向
    一向 (楼主)
    2021-01-13 19:58

    '', indicating the script close tag. Escaping the slash keeps the browser in text interpreting mode.

    Or breaking it up as mentioned:

    "
    
                                     
                  
提交回复
热议问题