V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
lbfeng
V2EX  ›  jQuery

jquery selector "Syntax error, unrecognized expression selector"

  •  
  •   lbfeng · Mar 23, 2016 · 2795 views
    This topic created in 3697 days ago, the information mentioned may be changed or developed.

    $('#Company/Organization_1')

    如何能处理‘/’, 还是必须改 id.

    3 replies    2016-03-23 11:26:32 +08:00
    airyland
        1
    airyland  
       Mar 23, 2016 via iPhone
    既然用了下划线,为什么又要用斜线?
    lbfeng
        2
    lbfeng  
    OP
       Mar 23, 2016
    @airyland Company or Organization
    mcfog
        3
    mcfog  
       Mar 23, 2016
    反斜杠 escape 啊

    $('#Company\\/Organization_1')
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6321 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 02:38 · PVG 10:38 · LAX 19:38 · JFK 22:38
    ♥ Do have faith in what you're doing.