node属性中有个state,默认是open,传数据的时候设置为closed就可以了。类似于{ "text":"Languages", "state":"closed", "children":[{ "text":"Java" },{ "text":"C#" }] }