An uncompleted string constant error was encountered when the autocomplete component was introduced

  • 2020-03-30 02:25:37
  • OfStack

In terms of my problems and solutions:

When I introduced jQuery's autocomplete component, I encountered an error with an unterminated js string constant.

Reason analysis: first, right click the page to see that the encoding is utf-8,

Second, look at the js error reporting function, and find the corresponding function.

Found that the original jQuery. Autocomplete. js exclamation point for the Chinese namely! Change it to English! , problem solving.

Related articles: