Layui tree.getChecked() 拿不到Id值 通过审查页面代码发现data-id没有赋值,在渲染tree时,传过来的id属性名必须为id,名字接收的属性为title,改成id后data-id即可如图拿到值 相关文章: 2021-11-01 2021-08-13 2021-08-28