[b]Tabs:懒加载页面[/b]
[img]http://www.miniui.com/docs/api/images/tabs_load.gif[/img]
参考示例:[url=http://www.miniui.com/demo/tabs/load.html]Tabs:懒加载页面[/url]
[b]创建Tabs[/b]
<ul id="tree1" class="mini-tree" url="../data/tree.txt" style="width:300px;padding:5px;"
showTreeIcon="true" textField="text" idField="id" >
</ul>
[b]数据结构[/b]
通过url返回的数据结构如下:
[
{title: "Tab1", url: "../tabs/pages/page1.html", refreshOnClick: true},
{title: "Tab2", url: "../tabs/pages/page2.html", showCloseButton: true},
{title: "Tab3", url: "../tabs/pages/page3.html"},
{title: "Tab4", url: "../tabs/pages/page4.html"},
{title: "Tab5", url: "../tabs/pages/page5.html"}
]
[img]http://www.miniui.com/docs/api/images/tabs_load.gif[/img]
参考示例:[url=http://www.miniui.com/demo/tabs/load.html]Tabs:懒加载页面[/url]
[b]创建Tabs[/b]
<ul id="tree1" class="mini-tree" url="../data/tree.txt" style="width:300px;padding:5px;"
showTreeIcon="true" textField="text" idField="id" >
</ul>
[b]数据结构[/b]
通过url返回的数据结构如下:
[
{title: "Tab1", url: "../tabs/pages/page1.html", refreshOnClick: true},
{title: "Tab2", url: "../tabs/pages/page2.html", showCloseButton: true},
{title: "Tab3", url: "../tabs/pages/page3.html"},
{title: "Tab4", url: "../tabs/pages/page4.html"},
{title: "Tab5", url: "../tabs/pages/page5.html"}
]
本文详细介绍了如何使用MiniUI库实现懒加载页面的Tabs组件,并提供了实例代码和数据结构说明。
&spm=1001.2101.3001.5002&articleId=82451929&d=1&t=3&u=2cb617d730984dd395da8d2c261066c3)
1万+

被折叠的 条评论
为什么被折叠?



