0

我正在尝试实现 mxgraph。对于节点或边缘中的非 html 值,它工作正常,但对于 html 值,它抛出错误 cell.getParent is not a function。

即使我将 html 选项设置为 graph.setHtmlLabels(true); graph.htmlLabels = true;

下面是节点的 html 值的图像

在此处输入图像描述

下面是没有html值节点的图片

在此处输入图像描述

浏览器控制台出错

在此处输入图像描述

4

1 回答 1

-1

尝试改变:

codec.decode(elm,model) 

codec.decodeCell(elm)
于 2019-03-11T06:13:21.173 回答