Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
![我想移动我的jsplumb源及其目标,因为我动态绘制这些 jsplumb,当我移动每个源时,它的目标也应该随之移动?1
如果有办法移动我的 Jsplumb 的每个源及其目标,请帮助我下载图像并提供帮助* 当我拖动任何 Jsplumb 源时,它应该与它的目标一起移动?*
我想你已经有代码来移动源代码。
所以以下可能会有所帮助:-)
var sourcecon = jsPlumb.getConnections({source: e}) ; for(i=0; i<sourcecon.length; i++) { moveTarget(sourcecon[i].targetId) ; } moveTarget 将是一个具有移动目标代码的函数。
var sourcecon = jsPlumb.getConnections({source: e}) ; for(i=0; i<sourcecon.length; i++) { moveTarget(sourcecon[i].targetId) ; }