Home
Sign Up
Sign In
V2EX
›
jQuery
jquery selector "Syntax error, unrecognized expression selector"
lbfeng
·
Mar 23, 2016
· 3218 views
This topic created in 3864 days ago, the information mentioned may be changed or developed.
$('#Company/Organization_1')
如何能处理‘/’, 还是必须改 id.
selector
jquery
syntax
error
3 replies
•
2016-03-23 11:26:32 +08:00
1
airyland
Mar 23, 2016 via iPhone
既然用了下划线,为什么又要用斜线?
2
lbfeng
OP
Mar 23, 2016
@
airyland
Company or Organization
3
mcfog
Mar 23, 2016
反斜杠 escape 啊
$('#Company\\/Organization_1')
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
966 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 21:33
·
PVG 05:33
·
LAX 14:33
·
JFK 17:33
♥ Do have faith in what you're doing.
❯