为了账号安全,请及时绑定邮箱和手机立即绑定

GoJS中go.Model和go.GraphLinksModel分别如何使用

GoJS中go.Model和go.GraphLinksModel分别如何使用

BIG阳 2018-12-20 18:14:04
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);请问这两种用法究竟是如何使用
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1951 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信