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