dforce 发表于 2017-1-22 09:30 drawnode事件不处理选中不选中 请直接在js里设置tree.setValue(value)
wise 发表于 2017-1-22 21:21 var leftTree=mini.get("authentication_tree"); //设置左侧tree默认值
dforce 发表于 2017-1-23 09:19 请确保有value是"158"的节点。
wise 发表于 2017-1-23 09:43 158是json数据中的id字段。
dforce 发表于 2017-1-23 10:01 如我上面的截图,ajax的节点的id是ajax,可以正常使用setValue选中 你这请将id当作字符串,setValue("158" ...
wise 发表于 2017-1-23 10:43 我是这么写的,就是设不上去。。。如果设置成多选是可以设置上去的,单选就是设置不上去。 默认的选中状 ...
dforce 发表于 2017-1-23 11:03 请提供数据,html+js代码重现出你说的问题
wise 发表于 2017-1-23 11:08 json:
dforce 发表于 2017-1-23 12:05 不是让你不要在ondrawnode事件里处理,为什么还在里面处理 请在js里直接写
wise 发表于 2017-1-23 14:42 直接写更惨,默认值设都设不上去,选不上。。。。。。。。。判断那个是默认值,我还得用到json的checked, ...
dforce 发表于 2017-1-23 16:08 用的你的代码和数据,可以正常选中,如果你还有问题,请按示例修改,并且更新到最新版本 ...