jQuery MiniUI

 找回密码
 立即注册
查看: 1608|回复: 3
打印 上一主题 下一主题

这个树状除了id,text,和pid,可以多传一个字段吗? [复制链接]

Rank: 3Rank: 3

跳转到指定楼层
楼主
发表于 2014-11-4 15:47:12 |只看该作者 |倒序浏览
[        {id: "base", text: "Base", checked: true},                {id: "ajax", text: "Ajax", pid: "base"},        {id: "json", text: "JSON", pid: "base"},        {id: "date", text: "Date", pid: "base", checked: true},        {id: "control", text: "Control", pid: "base"},        {id: "forms", text: "Forms", pid: "base", isLeaf: false},                {id: "button", text: "Button", pid: "forms"},        {id: "listbox", text: "ListBox", pid: "forms"},        {id: "checkboxlist", text: "CheckBoxList", pid: "forms", checked: true},                {id: "lists", text: "Lists"},                {id: "datagrid", text: "DataGrid", pid: "lists"},        {id: "tree", text: "Tree", pid: "lists"},        {id: "treegrid", text: "TreeGrid ", pid: "lists"},        {id: "layouts", text: "Layouts"},                {id: "panel", text: "Panel", pid: "layouts"},        {id: "splitter", text: "Splitter", pid: "layouts"},        {id: "layout", text: "Layout ", pid: "layouts"},        {id: "navigations", text: "Navigations"},                                {id: "toolbar", text: "Toolbar", pid: "navigations"},        {id: "tabs", text: "Tabs", pid: "navigations"},        {id: "outlookbar", text: "OutlookBar", pid: "navigations"},        {id: "menu", text: "Menu", pid: "navigations"},        {id: "pager", text: "Pager", pid: "navigations"},        {id: "other", text: "Other", isLeaf: false, asyncLoad: false}]

Rank: 8Rank: 8

沙发
发表于 2014-11-4 16:18:18 |只看该作者
你要做什么,数据里可以任意放字段

Rank: 3Rank: 3

板凳
发表于 2014-11-4 16:47:21 |只看该作者
dforce 发表于 2014-11-4 16:18
你要做什么,数据里可以任意放字段

恩,但是我要让他把这个字段加到属性里面去,做一个标示,

Rank: 8Rank: 8

地板
发表于 2014-11-4 16:51:56 |只看该作者
春花之石 发表于 2014-11-4 16:47
恩,但是我要让他把这个字段加到属性里面去,做一个标示,

属性里不能加

Archiver|普加软件

GMT+8, 2024-10-7 03:22 , Processed in 1.044899 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部