Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/427.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 什么';graph.addCell和graph.insertVertex的主要区别是什么?_Javascript_Mxgraph - Fatal编程技术网

Javascript 什么';graph.addCell和graph.insertVertex的主要区别是什么?

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) {

graph.addCell和graph.insertVertex之间的主要区别是什么?它们可以互换使用吗?我什么时候使用每一个

可以找到这两个功能的文档

单元是顶点或边,请参见

addCell添加给定的单元格。insertVertex/Edge是创建顶点/边并调用addCell的包装器

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);
};