简体   繁体   English

jQuery - 通过 Ajax 的动态选项卡?

[英]jQuery - Dynamic Tabs via Ajax?

Does anyone know how this effect is named and how to recreate it in jQuery (without that library*)?:有谁知道这种效果是如何命名的,以及如何在 jQuery(没有那个库*)中重新创建它?:

http://www.jeasyui.com/documentation/index.php http://www.jeasyui.com/documentation/index.php

Click on the links on the left, can u see how tabs are created dynamically and contet is loaded via Ajax?点击左边的链接,你能看到标签是如何动态创建的,以及如何通过 Ajax 加载内容吗?

one feature I miss in this example: rearrange tabs (sortable)在这个例子中我错过了一个功能:重新排列标签(可排序)

*without that library = without the library/plugin I linkted to. *没有那个库=没有我链接到的库/插件。

Any Ideas?有任何想法吗?

The obvious answer to that is to use jQueryUI.显而易见的答案是使用 jQueryUI。

Their Tabs widget supports everything you need: Adding tabs dynamically , Loading content in ajax, sortables .他们的选项卡小部件支持您需要的一切:动态添加选项卡,在ajax中加载内容,分类。

http://jqueryui.com/demos/tabs/ http://jqueryui.com/demos/tabs/

http://docs.jquery.com/UI/Tabs http://docs.jquery.com/UI/Tabs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM