使用jQuery 利用json文件模拟数据实现下拉树形菜单



	
	无标题文档
	



	

//json文件

{
"data": [
{
"subnetId": 1,
"subnetNode": -1,
"subnetRemark": "节点一",
"subnetName": "节点一"
}, {
"subnetId": 2,
"subnetNode": 1,
"subnetRemark": "节点一",
"subnetName": "节点一"
}, {
"subnetId": 3,
"subnetNode": 1,
"subnetRemark": "节点一",
"subnetName": "节点一"
}, {
"subnetId": 4,
"subnetNode": 1,
"subnetRemark": "节点一",
"subnetName": "节点一"
}, {
"subnetId": 5,
"subnetNode": 4,
"subnetRemark": "",
"subnetName": "节点一"
}, {
"subnetId": 6,
"subnetNode": 3,
"subnetRemark": "",
"subnetName": "节点一"
}, {
"subnetId": 7,
"subnetNode": 2,
"subnetRemark": "",
"subnetName": "节点一"
}
]
}

你可能感兴趣的:(tree)