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.
这是一个 jsfiddle,其形状应在鼠标拖动事件中移动。我可以在 javascript 控制台中看到 shape.move() 以适当的值调用,但形状不会移动。
为什么形状不动?
调用后stage.draw(),形状移动。
stage.draw()