- 注册时间
- 2012-5-23
- 最后登录
- 2018-2-27
- 阅读权限
- 200
- 积分
- 7605
- 精华
- 0
- 帖子
- 3021
|
langben 发表于 2013-10-17 18:46
niko
这是编辑表格
控件都还没有生成
- var list = [
- { id: "base", text: "Base" },
- { id: "ajax", text: "Ajax", pid: "base" },
- { id: "json", text: "JSON", pid: "base" },
- { id: "date", text: "Date", pid: "base" },
- { id: "control", text: "Control", pid: "base" },
- { id: "forms", text: "Forms", pid: "base" },
- { id: "button", text: "Button", pid: "forms" },
- { id: "listbox", text: "ListBox", pid: "forms" },
- { id: "checkboxlist", text: "CheckBoxList", pid: "forms" },
- { id: "lists", text: "Lists" },
- { id: "datagrid", text: "DataGrid", pid: "lists" },
- { id: "tree", text: "Tree", pid: "lists" },
- { id: "treegrid", text: "TreeGrid ", pid: "lists" }
- ];
- var tree = mini.arrayToTree(list, "children", "id", "pid")//使用 mini.arrayToTree(data,nodeFielld,idField,parentField)来处理
- var s = mini.encode(tree);
- alert(s);
复制代码 |
|