Uncaught TypeError:tree.render is not a function
at n .<anonymous><tree:21>
at c (layui.js?111:2)
at r (layui.js?111:2)
解决方案一:可能你是用的layui的版本为2.5之前的版本,他将不被兼容,
$(function(){
layui.use(["tree"],function () {
layuiTree = layui.tree;
})
})