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
- syntax error near unexpected token `Error
- exp tables sh: Syntax error: `(' is not expectedError
- java.sql.SQLException: The server time zone value ‘???ú±ê×??±??‘ is unrecognized or represents moreJavaSQLExceptionServerZed
- Solaris syntax error: unexpected end of fileError
- Oracle安裝報錯syntax errorOracleError
- 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
- Unrecognized Windows Sockets error: 0: JVM_Bind異常ZedWindowsErrorJVM
- 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
- mysql執行報The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one tim......MySqlServerZed
- 配置NDK syntax error: unexpected end of file 解決Error
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- syntax error near unexpected token `問題的解決Error
- error C2061: syntax error : identifier '__RPC__out_xcount_part'ErrorIDERPC
- Idea資料庫引入異常:java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognizedIdea資料庫JavaSQLExceptionServerZed
- shell 指令碼報錯^M: syntax error near unexpected token指令碼Error
- According to TLD or attribute directive in tag file, attribute value does not accept any expressionExpress
- 解決報錯error the @annotation pointcut expression is only supported at Java 5ErrorExpressJava
- log4j2 ERROR StatusLogger Unrecognized conversion specifier解決ErrorZed
- pecl PHP Parse error: syntax error, unexpected 'new' (T_NEW) 以及 XML缺失解決辦法PHPErrorXML
- Java錯誤提示-------java.net.SocketException:Unrecognized Windows Sockets error: 0: JVM_BindJavaExceptionZedWindowsErrorJVM
- 解決laravel出現Syntax error or access violation: 1055 ‘***‘ isn‘t in GROUP BYLaravelError
- 360 Atals:Cause: java.sql.SQLException: Proxy Warning - near “status“: syntax errorJavaSQLExceptionError
- eclipse 引入外部js檔案報Syntax error on token 錯解決方案EclipseJSError
- 執行遷移檔案報錯: Syntax error or access violation: 1166 ...Error
- CentOS7使用exp/imp時報錯:bash: syntax error near unexpected token `(CentOSError
- ERROR ITMS-90542: “Invalid CFBundleSupportedPlatforms value.”ErrorPlatform
- Mail To SyntaxAI
- mysql 主從同步 Error 'Out of range value for column的問題MySql主從同步Error
- Expression BlendExpress
- Syntax Error: ValidationError: Invalid options object. Stylus Loader has been initialized using anErrorObjectZed
- Laravel 8使用 佇列任務出現 「 syntax error, unexpected ')' 」錯誤解決Laravel佇列Error
- Linux 5中出現的-bash: syntax error near unexpected token `('錯誤LinuxError
- 452 Error writing file: A file cannot be larger than the value set by ulimit.ErrorMIT
- pyinstaller打包pytest+allure框架的程式碼後,執行時exe: error: unrecognized arguments: --alluredir框架ErrorZed