多条线的连接
可以通过for循环一条线一条线的连接
this.jsPlumb.ready(() => {
for (let i = 0; i < this.connList.length; i++) { //循环
let conn = this.connList[i],
connection = this.jsPlumb.connect({
source:conn.sourceNodeId , //起点
target: conn.targetNodeId, //终点
label: conn.labels,
// anchor: [0.5,0,0,1],
anchors:[“Bottom”, [0.5,1,0,1]],
paintStyle:{strokeWidth:1,stroke:‘rgb(243,230,18)’},
});
删除
this.jsPlumb.deleteEveryConnection()