English 中文(简体)
如何把大孩子装进懒惰的王室树上?
原标题:How to load grand children in lazy loading of dynatree?

我有些时候想带孩子和孙子, 如果可能的话,

当我为懒惰的装货准备json反应时, 我可以准备json的反应像这样吗?

[ { "title": "Node1", "isLazy": true, "key": "BC13B21636CD6D5C", }, { … }, … ]

解决我的问题,我可以试试这样吗?

 [ { "title": "Node1", "isLazy": true, "key": "BC13B21636CD6D5C",children:{ "title": "childNode", "isLazy": true, "key": "asdaasas"} }, { … }, … ]

这行得通吗?

实际要求是页面加载取决于某一条件时, 树下特定节点应该扩大并激活, 并显示给用户 。 如果用户想要正常的话, 其他节点也可以进行懒惰加载 。

最佳回答

Yes, that should work: You can pass nested structures. Note that if a node has children defined, the "isLazy": true flag is not required (but does not hurt either).

问题回答

暂无回答




相关问题
JQuery/MVC Search Issue

I have inherited a piece of work where the entry screen shows a summary of 20 calculated variables. E.g. Var A (250), Var B (79). Clicking on any of these links takes the user to a view with a ...

jQuery quicksearch plug-in tinkering with JSON

I ve implemented the quicksearch plugin by Rik Lomas and I love it for an application in a custom CMS I m building. I was wondering though, since I m going to have a bizillion items in the table if ...

JSON with classes?

Is there a standardized way to store classes in JSON, and then converting them back into classes again from a string? For example, I might have an array of objects of type Questions. I d like to ...

PHP json_decode question

i m trying to use json_decode to combine a few json objects and then re-encode it. my json looks like: { "core": { "segment": [ { "id": 7, "...

Converting JSON data to Java object

I want to be able to access properties from a JSON string within my Java action method. The string is available by simply saying myJsonString = object.getJson(). Below is an example of what the string ...

热门标签