摘要: follow(item) function follow(target){ //定位自动偏移问题在target元素再套一个父元素可解决 var startx,starty,left_start,top_start,movex,movey,X,Y; var it = document.querySel 阅读全文
posted @ 2019-01-14 15:03 阿|明 阅读(824) 评论(0) 推荐(0) 编辑
摘要: tachMove(item) function tachMove(targer){ var startx,starty,X,Y; targer.addEventListener("touchstart",function(e){ //第一次触摸 startx = e.touches[0].pageX; starty = e.touches[0].p... 阅读全文
posted @ 2019-01-14 11:28 阿|明 阅读(332) 评论(0) 推荐(0) 编辑