且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Fancybox 2中具有内联内容的UI选项卡.如何在保留标签的同时直接转到标签上的标签

更新时间:2023-09-03 11:45:58

这对我有用

$(document).on("click", ".menu", function() {
var target = $(this).data("target");

if (target == 'sources') {
    jQuery('.page_tabs').tabs({ active: 0 });
}
if (target == 'topics') {
    jQuery('.page_tabs').tabs({ active: 1 });
}
if (target == 'geography') {
    jQuery('.page_tabs').tabs({ active: 2 });
}
if (target == 'tools') {
    jQuery('.page_tabs').tabs({ active: 3 });
}
if (target == 'learn') {
    jQuery('.page_tabs').tabs({ active: 4 });
}
if (target == 'news') {
    jQuery('.page_tabs').tabs({ active: 5 });
}
});