jQuery MiniUI
标题:
menu loadData问题
[打印本页]
作者:
shmily4666
时间:
2012-7-8 08:46:23
标题:
menu loadData问题
<ul id="Memu1" class="mini-menubar" style="width:100%;" textField="text" idField="id" parentField="pid" >
</ul>
var menu = mini.get("Memu1");
menu.loadData([{ id: "1", text: "文件(F)"},
'-',
{ id: "2", text: "新建", iconCls: "icon-new", pid: "1"},
{ id: "3", text: "文件", pid: "2"},
{ id: "4", text: "文件夹", pid: "2"},
{ id: "5", text: "打开", iconCls: "icon-folderopen", pid: "1"},
{ id: "6", text: "保存", pid: "1"},
{ id: "7", text: "关闭", pid: "1"}
]);
提示对象不支持此属性或方法
是否一定要在ul属性设定 url="../data/listMenu.txt" 之类的才行?
作者:
niko
时间:
2012-7-8 09:53:26
Menu的话,是:
menu.setItems([...]);
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2