myDiagram.addDiagramListener

why this
myDiagram.addDiagramListener(‘ObjectSingleClicked’,function(e){
console.log(e.subject.part.data)
});

点击一次视图出两次事件
Click once to view two events
is two data ?

two click?

When I added your code to the Minimal sample, I only got one message in the console window for each click event on a Node or a Link.

Could you please explain what you are trying to do and how you are doing it?

tk your reply,i need one event to execute $.ajax insert my form but when i click once , have two execute.

lol , i know,
i have two init()