/*遍历的几种方法(1)
for(var i=0;i<nodes.length;i++){
nodes[i].id
id}
(2)nodes.map(function(x){x.id})
(3)jquery 遍历语法
$.each(data,function(index,comment){})
附上一段方法3 具体取值赋值的代码
$.each(data,function(index,comment){
var mparentid = comment['mparentid'];
$('#mparentid').val(mparentid);
});