0
updatedEvent() 함수에서 편집 노드의 ID를 얻으려면 어떻게해야합니까? <- 언어 Getorgchart, 편집 된 노드의 ID를 가져 옵니까?
function updatedEvent(sender, args) {
var model = [];
for (var id in orgChart.nodes) {
var node = orgChart.nodes[id];
var data = $.extend(true, { Id: node.id, ParentId: node.pid }, node.data);
model.push(data);
}
var model = JSON.stringify({ 'model': model });
}
이 updateNodeEvent 사용할 수 있습니다! LANG -js -> var peopleElement = document.getElementById ("people"); VAR의 OrgChart를 새로운 getOrgChart = (peopleElement { ... updatedEvent : updatedEvent} 함수 updatedEvent (송신자에 args) {... CONSOLE.LOG ('updatedEvent, 인수 ='+ 인수) ; } <- 끝 조각! -> 콘솔 : updatedEvent, 인수 = –