直接调用spread.toJSON()是不会保存designerBindingPathSchema
您需要用designer.getData("updatedTreeNode")获取这块Schema
然后再- designer.setData("treeNodeFromJson", JSON.stringify(json.designerBindingPathSchema));
- designer.setData("oldTreeNodeFromJson", JSON.stringify(json.designerBindingPathSchema));
复制代码
另外,上面我给您的代码中调用delete json.designerBindingPathSchema;将Schema删除了
|