Home >Web Front-end >JS Tutorial >JS reports unfinished string constant error when introducing autocomplete component_javascript skills

JS reports unfinished string constant error when introducing autocomplete component_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:55:06859browse

My problem and solution:

When I introduced the autocomplete component of jQuery, I encountered an unended string constant error in js.

Cause analysis: First, right-click the page to check that the encoding is utf-8.

Secondly, check the function reporting the js error and find the corresponding function.

I found out that the exclamation point in jQuery.autocomplete.js is Chinese! Change it to English! and the error problem will be solved.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn