引入jquery-3.1.1报错(见图片),引入jquery-2.1.1就没问题。
$("#menu").find("[href=" + currentId + "]")该如何修改才能在jquery3.1.1中有效?
引入jquery-3.1.1报错(见图片),引入jquery-2.1.1就没问题。
$("#menu").find("[href=" + currentId + "]")该如何修改才能在jquery3.1.1中有效?
6 回答875 阅读✓ 已解决
1 回答677 阅读
1 回答697 阅读
谢邀~
试一下:
$("#menu").find("[href='" + currentId + "']")...;
$("#menu 元素名[href='" + currentId + "']")...;