摘要:
用js写了一个Map,带遍历功能,请大家点评下啦。//map.jsArray.prototype.remove = function(s) { for (var i = 0; i Test Map 阅读全文
摘要:
var json = [{tcName:"11", children:[{tcName:"22", children:[{tcName:"33"}]}, {tcName:"44", children:[{tcName:"55"}, {tcName:"55"}]}]}]; readTree(json[0], $("#load")); function readTree(node, ul) { var li = $(["" + " 阅读全文