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.