也许Q就在off-topic
, 但我对WordPress环境很感兴趣。
我已经在FireBug的仪表板页面中直接测试了这一点(wp-admin/index.php
).
var $ =jQuery.noConflict();
// Remove \'active\' class from all link tabs
$(\'li[id^="tab-link-"]\').each(function(){
$(this).removeClass(\'active\');
});
// Hide all panels
$(\'div[id^="tab-panel-"]\').each(function(){
$(this).css(\'display\',\'none\');
});
// Set our desired link/panel
$(\'#tab-link-help-content\').addClass(\'active\');
$(\'#tab-panel-help-content\').css(\'display\',\'block\');
// Force click on the Help tab
$(\'#contextual-help-link\').click();