zTree显示问题
ztree吧
全部回复
仅看楼主
level 4
sofcets52875 楼主
第一次打开是正常的
第二次打开Tree就显示不了了,js没报任何错!
2016年12月24日 07点12分 1
level 4
sofcets52875 楼主
我用的是Extjs和zTree联合使用的
2016年12月24日 07点12分 2
level 4
sofcets52875 楼主
没人知道吗?我等的花都谢了啊!
2016年12月25日 04点12分 4
level 4
sofcets52875 楼主
此问题已解决
2016年12月31日 09点12分 5
level 4
sofcets52875 楼主
原因就是第一次window.show()以后调用了zTree的init()方法,但是当window.hide()时候,id为treeDemo的对象并没有销毁,所以导致第二次打开有问题。解决方法是一进入页面onready中写$('#treeDemo').remove();问题完美解决!
2016年12月31日 09点12分 6
1