function onEditNode(e) {
var tree = mini.get("tree1");
var node = tree.getSelectedNode();
tree.beginEdit(node);
}
function saveTree() {
var tree = mini.get("tree1");
var data = tree.getData();
var json = mini.encode(data);
alert("保存tree");
}
为什么编辑完没有调用saveTree方法呢? 作者: felt 时间: 2013-7-11 14:45:45
function saveData() {
var tree = mini.get("tree1");
var data = tree.getData();
var json = mini.encode(data);