0
我在jstree中傳遞一些json數據,然後更新樹。 比如我最初的數據是jstree在更新後獲取數據
[
{ "id" : "demo_root_1", "text" : "Root 1", "children" : true, "type" : "root" },
{ "id" : "demo_root_2", "text" : "Root 2", "type" : "root" }
]
我更新了一點(簡單的重命名)。 「根1」變成「更新」。我如何才能以下面的json格式獲取我的數據的更新版本?
[
{ "id" : "demo_root_1", "text" : "UPDATED", "children" : true, "type" : "root" },
{ "id" : "demo_root_2", "text" : "Root 2", "type" : "root" }
]
代碼不能正常工作,請幫忙! – atefth