demo1中代码 链接描述myDiagram.model = new go.GraphLinksModel( [ { key: "Alpha", color: "lightblue" }, { key: "Beta", color: "orange" }, { key: "Gamma", color: "lightgreen" }, { key: "Delta", color: "pink" } ], [ { from: "Alpha", to: "Beta" }, { from: "Alpha", to: "Gamma" }, { from: "Beta", to: "Beta" }, { from: "Gamma", to: "Delta" }, { from: "Delta", to: "Alpha" } ]);demo2中代码 链接描述myDiagram.model = go.Model.fromJson(document.getElementById("mySavedModel").value);请问这两种用法究竟是如何使用
添加回答
举报
0/150
提交
取消