An inexplicable exception 001:Invalid or unexpected token
A query page suddenly appears the following error:
Uncaught SyntaxError: Invalid or unexpected token
Translated into Chinese is:
Invalid or unexpected tag for the captured query.
What is this? It's all right to check the logic of the code carefully. I look confused and don't even know what's going on.
Since there is no problem with the code logic, then it is the data problem. After checking all the data to be displayed on the page, it is sure enough to find doubtful points, with more single and double quotation marks.
In fact, this error tip tells us:
The data has special characters.
Important things are to be repeated for 3 times.
If you still encounter this problem, please carefully check the content of the data and change it to the correct format.