摘要:
//数组转化为树 function arraytotree(arr) { var top = [], sub = [], tempObj = {}; arr.forEach(function (item) { if (item.parentId 0) { // 顶级分类 top.push(item) 阅读全文
摘要:
数据表结构: 后端代码: @RequestMapping(value = "/list", method = RequestMethod.POST) public Result findCategory(){ List<Category> list = categoryService.findCat 阅读全文