手指刚放到屏幕,这个触改是咋回事呢?
- 内容介绍
- 文章标签
- 相关推荐
本文共计105个文字,预计阅读时间需要1分钟。
plaintextgistfile1.txt:// 手指刚放到屏幕上 touchS: function(e) { console.log(touchS + e); // 判断是否只有一个触摸点 if (e.touches.length===1) { this.setData({ // 记录触摸起始位置的X坐标 startX: e.touches[0].clientX }); } }
//手指刚放到屏幕触发 touchS: function (e) { //console.log("touchS" + e); //判断是否只有一个触摸点 if (e.touches.length == 1) { this.setData({ //记录触摸起始位置的X坐标 startX: e.touches[0].clientX }); } },
本文共计105个文字,预计阅读时间需要1分钟。
plaintextgistfile1.txt:// 手指刚放到屏幕上 touchS: function(e) { console.log(touchS + e); // 判断是否只有一个触摸点 if (e.touches.length===1) { this.setData({ // 记录触摸起始位置的X坐标 startX: e.touches[0].clientX }); } }
//手指刚放到屏幕触发 touchS: function (e) { //console.log("touchS" + e); //判断是否只有一个触摸点 if (e.touches.length == 1) { this.setData({ //记录触摸起始位置的X坐标 startX: e.touches[0].clientX }); } },

