并 并
layui.use(['dtree'], function () { dtree = layui.dtree; dtree.render({ elem: "#demoTree", initLevel: "1", method: 'get', url: "admin/data/dtree.json" }); });
layui.use(['dtree'], function () { dtree = layui.dtree; dtree.render({ elem: "#demoTree", initLevel: "1", method: 'get', url: "admin/data/dtree.json", dataFormat: "list", checkbar: true }); });
layui.use(['dtree'], function () { dtree = layui.dtree; dtree.render({ elem: "#demoTree2", initLevel: "1", method: 'get', url: "admin/data/dtree.json", select: true }); });