//template
<div id="canvas" v-on:mousemove="mousemove"></div>

//script
 methods: {
            mousemove: function (event) {

                this.x = event.offsetX
                this.y = event.offsetY
            }
        }

 

Logo

前往低代码交流专区

更多推荐