Syntax error, unrecognized expression: li[value=]
我出問題的程式碼是這樣的
var temp=112;
var nowTemp=$("li[value="+temp+"]"); //出問題這一行
我是要這樣選擇value=temp的li 問題就出來了
解決方案"+temp+"再加一層單引號 '"+temp+"'
即
var nowTemp=$("li[value='"+temp+"']");
相關文章
- 【shell 】syntax error in conditional expressionErrorExpress
- 如何解決"Parse error: syntax error"Error
- Solaris syntax error: unexpected end of fileError
- java.sql.SQLException: The server time zone value ‘???ú±ê×??±??‘ is unrecognized or represents moreJavaSQLExceptionServerZed
- 帝國CMS提示parse error syntax error的解決方法Error
- 異常解決——The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than oneServerZed
- JDBC:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.JDBCServerZed
- According to TLD or attribute directive in tag file, attribute value does not accept any expressionExpress
- 如何解決"You have an error in your SQL syntax"ErrorSQL
- spring boot 啟動時報錯The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized orJDBC driverSpring BootServerZedJDBC
- java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized...報錯解決JavaSQLExceptionServerZed
- log4j2 ERROR StatusLogger Unrecognized conversion specifier解決ErrorZed
- mysql執行報The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim......MySqlServerZed
- 6月書訊:Di li li li di li li li...
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- Idea資料庫引入異常:java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognizedIdea資料庫JavaSQLExceptionServerZed
- pecl PHP Parse error: syntax error, unexpected 'new' (T_NEW) 以及 XML缺失解決辦法PHPErrorXML
- Solaris awk: syntax error near line 1 awk: bailing out near line 1ErrorAI
- 執行遷移檔案報錯: Syntax error or access violation: 1166 ...Error
- 360 Atals:Cause: java.sql.SQLException: Proxy Warning - near “status“: syntax errorJavaSQLExceptionError
- Syntax Error: ValidationError: Invalid options object. Stylus Loader has been initialized using anErrorObjectZed
- 解決laravel出現Syntax error or access violation: 1055 ‘***‘ isn‘t in GROUP BYLaravelError
- pbootcms模板 後臺升級程式後導致網站打不開 Parse error: syntax error, unexpecboot網站Error
- eclipse 引入外部js檔案報Syntax error on token 錯解決方案EclipseJSError
- PbootCMS 升級後網站打不開,解析錯誤 Parse error: syntax error, unexpected ‘:’, expecting ‘{’怎麼辦boot網站Error
- pyinstaller打包pytest+allure框架的程式碼後,執行時exe: error: unrecognized arguments: --alluredir框架ErrorZed
- Laravel 8使用 佇列任務出現 「 syntax error, unexpected ')' 」錯誤解決Laravel佇列Error
- Springboot中配置動態sql查詢出現的錯誤syntax error, expect ‘)‘Spring BootSQLError
- 錯誤內容:You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverErrorMySqlServer
- JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime` from StringJSONErrorJavaLDA
- Laravel5.4 資料庫遷移錯誤 SQLSTATE [42000] Syntax error or access violation 1071Laravel資料庫SQLError
- [報錯:字元太長] SQLSTATE [42000]: Syntax error or access violation: 1071 Specified key was t oo long;字元SQLError
- 4.5.1.2.1 Syntax and Options
- 4.5.1.4.1 Syntax and Options
- ISSAC GYM解決RuntimeError: nvrtc: error: invalid value for --gpu-architecture (-arch)的問題ErrorVRGPU
- Leetcode 10 Regular Expression MatchingLeetCodeExpress
- find: paths must precede expression:Express
- Study for Go ! Chapter two - ExpressionGoAPTExpress