• id:节点的唯一标识。
  • text:显示在节点上的文本。
  • checked:节点是否被选择。
  • attributes:节点的自定义属性。
  • target:目标DOM对象。

attributes属性用来指定自定义属性,格式如下:

 1 [
 2 {
 3 "id":"S01"
 4 ,"text":"营运事业1"
 5 ,"checked":false
 6 ,"state":"closed"
 7 ,"attributes":{"deep":"0"}
 8 }
 9 ,{
10 "id":"S02"
11 ,"text":"营运事业2"
12 ,"checked":false
13 ,"state":"closed"
14 ,"attributes":{"deep":"0"}
15 }
16 ]

 自定义属性以键值对name:value的形式存放在{}中。

posted on 2013-05-06 12:51  Nature.j  阅读(12444)  评论(3编辑  收藏  举报