• 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的形式存放在{}中。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-11-20
  • 2021-06-09
  • 2022-12-23
  • 2021-05-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
相关资源
相似解决方案