84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
某个标签的id中存在#,document.getElementById可以直接选择,但是jquery就不行了,直接报错,需要怎么进行兼容性处理呢
Questions about the js selector? - PHP Chinese website Q&A - Questions about the js selector? - PHP Chinese website Q&A
Take a look around and learn.
试试用双反斜杠转义,即对于id="foo#bar",用$('#foo\\#bar')试试看~
Questions about the js selector? - PHP Chinese website Q&A - Questions about the js selector? - PHP Chinese website Q&A
Take a look around and learn.
试试用双反斜杠转义,即对于id="foo#bar",用$('#foo\\#bar')试试看~