jsTree 即使正确保存到cookie,刷新后也不会重新打开所有展开的节点
要重现该问题:
转到 http://www.jstree.com/demo 页面并向下滚动到“PHP & mySQL demo + event order”demo
添加树形文件夹,每个文件夹有一个子文件夹,每个子文件夹有一个文件
确保每个文件夹和子文件夹都已展开,并且展开的文件夹超过两个
点击刷新。仅展开前两个文件夹,其他文件夹再次关闭,即使所有文件夹都已展开
我在我的应用程序中遇到了同样的问题。我已跨过 使用调试器查看java脚本代码,看到cookie被保存并包含刷新之前所有扩展节点的id,但不知何故只包含 前两个节点被使用,其余的被丢弃并从 cookie 中清除。
你能想出解决办法吗?
任何帮助将不胜感激。
洛兰特
To reproduce the problem:
go to http://www.jstree.com/demo page and scroll down to "PHP & mySQL demo + event order" demo
add tree folders, each with one subfolder, each subfolder with one file
make sure that every folder and subfolder is expanded, and that there are more than two folders expanded
hit refresh. Only the first two folders expanded are expanded, the others are closed again, even though all the folders were expanded
I have the same exact problem in my application. I have stepped through
the java script code with the debugger and saw that the cookies are saved and contain the ids of all the expanded nodes before the refresh but somehow only the
first two nodes are used, the rest are discarded and cleared from the cookie.
Can you think of a solution?
Any help would be much appreciated.
Lorant
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论