2020
10-09
10-09
vue实现移动端触屏拖拽功能
vue实现移动端可拖拽浮球,供大家参考,具体内容如下1首先创建一个div<divclass="floatball"id="floatball"@mousedown="down"@touchstart.stop="down"@mousemove="move"@touchmove.stop="move"@mouseup="end"@touchend.stop="end"@click="showRewardDesc":style="{top:position.y+'px',left:position.x+'px'}">奖励规则</div>2给div附上样式<style>.floatball{color:white;height:50px;width:50px;padding:...
继续阅读 >