使用带有Ajax的jQuery .tabs()在URL中使用#预加载选项卡 [英] Preload tab with # in url using jQuery .tabs() with Ajax
问题描述
很明显,这适用于非ajax选项卡: http://jqueryui. com/demos/tabs/default.html#tabs-2
It's obvious this works for non-ajax tabs: http://jqueryui.com/demos/tabs/default.html#tabs-2
但是如何使它适用于ajax选项卡,如以下示例所示: http://jqueryui.com/demos/tabs/ajax.html
But how do you get this working for ajax tabs, as shown in this example: http://jqueryui.com/demos/tabs/ajax.html
我尝试给出<a name="">
,但效果不佳,只是想知道在url中使用#来预加载带有ajax标签的标签的最佳方法是什么?
I tried giving the <a name="">
, that didn't quite work, just curious what's the best way to get this functionilty of using the # in the url to preload a tab with ajax tabs in jquery?
谢谢.
推荐答案
它也与ajax选项卡完全相同:
It works exactly the same with ajax tabs too:
访问此页面: http://jqueryui.com/demos/tabs/ajax.html#ui-tabs-2 ,请注意,显示的内容是用ajax加载的.
Visit this page: http://jqueryui.com/demos/tabs/ajax.html#ui-tabs-2 and note that the content shown is loaded with ajax.
这篇关于使用带有Ajax的jQuery .tabs()在URL中使用#预加载选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!