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
Release: 2016-05-16 16:55:06
Original
859 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template