Javascript 什么';graph.addCell和graph.insertVertex的主要区别是什么?
graph.addCell和graph.insertVertex之间的主要区别是什么?它们可以互换使用吗?我什么时候使用每一个 可以找到这两个功能的文档 单元是顶点或边,请参见 addCell添加给定的单元格。insertVertex/Edge是创建顶点/边并调用addCell的包装器Javascript 什么';graph.addCell和graph.insertVertex的主要区别是什么?,javascript,mxgraph,Javascript,Mxgraph,graph.addCell和graph.insertVertex之间的主要区别是什么?它们可以互换使用吗?我什么时候使用每一个 可以找到这两个功能的文档 单元是顶点或边,请参见 addCell添加给定的单元格。insertVertex/Edge是创建顶点/边并调用addCell的包装器 mxGraph.prototype.insertVertex = function(parent, id, value, x, y, width, height, style, relative) {
mxGraph.prototype.insertVertex = function(parent, id, value,
x, y, width, height, style, relative)
{
var vertex = this.createVertex(parent, id, value, x, y, width, height, style, relative);
return this.addCell(vertex, parent);
};