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.
我想使用 jQuery 从 xml 创建一个菜单。仅当我单击主菜单时才应显示子菜单。
这是我第一次使用 jQuery 处理 xml,所以很难。
请帮忙!
您可能需要解析 XML,然后根据该数据创建菜单项。请参阅此处了解更多信息:
http://api.jquery.com/jQuery.parseXML/
另见:
如何使用 jQuery 解析 XML?