user.txt内容:
{
     users: [{
         name: "系统管理",
         title: "systemManager",
 childrens:[
 {name:"系统设置",title:"systemSetup"},
 {name:"用户管理",title:"userManager"}
 ]
     },
 {
         name: "虚拟资源管理",
         tag: "visualRes",
  childrens:[
 {name:"系统设置1",title:"myd"},
 {name:"用户管理1",title:"demo1"}
 ]
     }
 ]
 }

解决方案 »

  1.   

    itemSelector : StringREQUIRED4
    This is a required setting. A simple CSS selector (e.g. div.some-class or span:first-child) that will be used to determine what nodes this DataView will be working with. The itemSelector is used to map DOM nodes to records. As such, there should only be one root level element that matches the selector for each record.