阅读背景:

如何使用jquery正确地将addClass添加到元素?

来源:互联网 

I have a nav, each li item containing their own specific class. I want the nav li item to be "active" while the user is on the current page, by adding an "active" class to the current li item. But it's not working and Im not sure why. This could be a stupid mistake so please forgive me I have a nav, each li item containing their own




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: