The following error suddenly appears on a query page:
Uncaught SyntaxError: Invalid or unexpected token,
Translated into Chinese:
the captured query is invalid or unexpected
what is this?Careful query code logic completely no problem, a face muddled force, do not know what happened.
Since there is no problem with the code logic, it is a data problem. After checking all the data to be displayed on the page, we found some doubtful points, such as single quotation marks and double quotation marks.
In fact, this error prompt tells us that the data has special characters; The data has special characters; The data has special characters
Read More:
- Baidu editor echo JS error uncaught syntax error: invalid or unexpected token
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- Unexpected token o in JSON at p
- Unexpected syntax error: unexpected token<
- Uncaught syntax error: unexpected token ‘< 0‘
- Parsing error: Unexpected token
- Module build failed: SyntaxError: Unexpected token
- Error resolution of unexpected token in JSON at position 0
- Shell script syntax error near unexpected token ‘$’Do
- Error: unexpected syntax error: unexpected token<
- Syntax error: unexpected token in uni app project compilation
- syntax error near unexpected token `else’
- Module parse failed:Unexpected token (9:6)
- Unexpected token u in JSON at position 0
- Syntax error near unexpected token `newline’script cannot be executed
- Unexpected token appears in JS
- syntax error near unexpected token `then’ problem solution
- [system]SyntaxError: Unexpected token u in JSON at position 0
- Solve the problem of shell script “syntax error near unexpected token `fi’”.