Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在添加按钮点击类,即使是这样
$('#someid').addclass("active11");
当我当时在浏览器中查看时,这个类添加成功,但是当我在恢复按钮(意味着移动视图)中查看时,添加的类没有显示。
怎样才能做到这一点?请帮忙
它应该是 addClass,大写 C。
这是正确的语法:
$( "element" ).addClass( "myClass" );