jsTree 不渲染我的 JSON 数据
我正在 ajax 模式下使用 jsTree。
返回的 json 数据采用以下格式:
[{"Name":"David"},{"Name":"Joe"},{"Name":"Leo"},{"Name":"George"},{"Name":"Keith"}]
由于某些原因 jsTree 不会将其呈现为树。
有什么想法吗?
I'm working with jsTree in ajax mode.
The return json data is in the following format:
[{"Name":"David"},{"Name":"Joe"},{"Name":"Leo"},{"Name":"George"},{"Name":"Keith"}]
And for some reason the jsTree doesn't render it as a tree.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
imo jsTree 不支持您使用的 JSON 结构。您必须遵循文档中描述的结构 - http://www.jstree.com/documentation/json_data
例如
imo jsTree does not support JSON structure you use. you have to follow structure described in the dcoumentation - http://www.jstree.com/documentation/json_data
e.g.