gistfile1.txt //手指刚放到屏幕触发 touchS: function (e) { //console.log("touchS" + e); //判断是否只有一个触摸点 if (e.touches.length == 1) { this.setData({ //记录触摸起始位置的X坐标 startX: e.touches[0].client
//手指刚放到屏幕触发
touchS: function (e) {
//console.log("touchS" + e);
//判断是否只有一个触摸点
if (e.touches.length == 1) {
this.setData({
//记录触摸起始位置的X坐标
startX: e.touches[0].clientX
});
}
},
