1、第一步先用getAllConnections方法获取所有连线数据 2、通过setPaintStyle方法重新绘制线条颜色 // 获取所有连接线 var connection = this.jsPlumb.getAllConnections() connection.map(item => { item.setPaintStyle({ stroke: 'red' }) // 重新绘制线颜色为红色 })