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 选项卡的情况下检索所有选项卡名称或标签?
我需要这个来验证标签名称/标签长度。
如果您使用的是 jquery 选项卡,那么
$('.ui-tabs-nav li')
应该给你所有的选项卡列表元素。
$('label')
应该给你页面上的所有标签。