lbfeng
V2EX  ›  jQuery

jquery selector "Syntax error, unrecognized expression selector"

  •  
  •   lbfeng · Mar 23, 2016 · 2864 views
    This topic created in 3729 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   ·   1204 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 17:41 · PVG 01:41 · LAX 10:41 · JFK 13:41
    ♥ Do have faith in what you're doing.