推荐答案 http://jsfiddle.net/M6ufm /3/ 我为您更新了此内容.本质上,您要删除圆,然后在其上模拟一个事件,然后在矩形上模拟一个事件. I updated this for you.Essentially, you were removing the circle and then simulating an event on it, then simulating an event on the rectangle. // Show BLUE rectangle on clicking RED circle, Hide RED circle, start dragging rectanglecircle.on('dragstart mousedown', function(e) { layer.add(rectangle); circle.remove(); rectangle.simulate('mousedown'); rectangle.simulate('dragstart'); }); 这篇关于更改KineticJS中的滞后目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-27 02:26