阅读背景:

有选择地更改一个类的href。

来源:互联网 

I'm working on a drop-down menu, and would like to selectively change the href attribute for certain elements. The menu is made up of two classes, the menuitems and the submenu items. Every menuitem has a corresponding submenu, but some of the submenus contain empty lists. For the menuitems that have an empty submenu list, I want the href to be "#".I'm working on a drop-down menu, and would like




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

分享到: