求大神帮忙吧下面这段代码换成纯jq的,这段代码里有js没法兼容ie
var data = eval(__jobsort);
console.log(data);
for (var z = 0; z < data[0].subSorts.length; z++) {
var firstBuff = "";
for (var i = 0; i < data[0].subSorts[z].subSorts.length; i++) {
var first = data[0].subSorts[z].subSorts[i];
console.log(first);
var messBuff = "";
for (var j = 0; j < data[0].subSorts[z].subSorts[i].subSorts.length; j++) {
var interim = "<a>" + data[0].subSorts[z].subSorts[i].subSorts[j].name + "</a>"
messBuff += interim;
}
console.log(messBuff);
var twoBuff = '<dl class="list clearfloat"><dt class="title"><a>' + first.name + '</a></dt> <dd class="mess clearfloat">' + messBuff + ' </dd> </dl>';
firstBuff += twoBuff;
}
$("#app").append("<div class='child_item clearfloat'>" + firstBuff + "</div>")
}