unterminated string literal / Invalid or unexpected token

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

Why am I getting...

SyntaxError: unterminated string literal

...in Firefox and...

Uncaug

2条回答
  •  孤独总比滥情好
    2021-01-13 19:52

    Break up the string "" (in the javascript code); it will be interpreted as an actual closing script tag rather than the string literal you intend.

    $(document).ready(function () {
      function addJSBeforeEndBody(code) {
           $('body').append('

提交回复
热议问题