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
- java.sql.SQLException: The server time zone value ‘???ú±ê×??±??‘ is unrecognized or represents moreJavaSQLExceptionServerZed
- syntax error near unexpected token `Error
- exp tables sh: Syntax error: `(' is not expectedError
- Solaris syntax error: unexpected end of fileError
- Oracle安裝報錯syntax errorOracleError
- Unrecognized Windows Sockets error: 0: JVM_Bind異常ZedWindowsErrorJVM
- JDBC:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.JDBCServerZed
- 異常解決——The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than oneServerZed
- 帝國CMS提示parse error syntax error的解決方法Error
- spring boot 啟動時報錯The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized orJDBC driverSpring BootServerZedJDBC
- java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized...報錯解決JavaSQLExceptionServerZed
- line 10:syntax error: unexpected end of fileError
- 如何解決"You have an error in your SQL syntax"ErrorSQL
- mysql執行報The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim......MySqlServerZed
- 配置NDK syntax error: unexpected end of file 解決Error
- Idea資料庫引入異常:java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognizedIdea資料庫JavaSQLExceptionServerZed
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- syntax error near unexpected token `問題的解決Error
- error C2061: syntax error : identifier '__RPC__out_xcount_part'ErrorIDERPC
- According to TLD or attribute directive in tag file, attribute value does not accept any expressionExpress
- shell 指令碼報錯^M: syntax error near unexpected token指令碼Error
- 解決報錯error the @annotation pointcut expression is only supported at Java 5ErrorExpressJava
- log4j2 ERROR StatusLogger Unrecognized conversion specifier解決ErrorZed
- Java錯誤提示-------java.net.SocketException:Unrecognized Windows Sockets error: 0: JVM_BindJavaExceptionZedWindowsErrorJVM
- pecl PHP Parse error: syntax error, unexpected 'new' (T_NEW) 以及 XML缺失解決辦法PHPErrorXML
- 解決laravel出現Syntax error or access violation: 1055 ‘***‘ isn‘t in GROUP BYLaravelError
- 360 Atals:Cause: java.sql.SQLException: Proxy Warning - near “status“: syntax errorJavaSQLExceptionError
- ERROR ITMS-90542: “Invalid CFBundleSupportedPlatforms value.”ErrorPlatform
- pbootcms模板 後臺升級程式後導致網站打不開 Parse error: syntax error, unexpecboot網站Error
- eclipse 引入外部js檔案報Syntax error on token 錯解決方案EclipseJSError
- 執行遷移檔案報錯: Syntax error or access violation: 1166 ...Error
- CentOS7使用exp/imp時報錯:bash: syntax error near unexpected token `(CentOSError
- Mail To SyntaxAI
- mysql 主從同步 Error 'Out of range value for column的問題MySql主從同步Error
- Expression BlendExpress
- 錯誤內容:You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverErrorMySqlServer