因为他是数组类的,需要定义下标。
$(".tabel").on('touchmove',function(event){
console.log(event);
});
如果直接console.log(event)的话我们看到的clientX和clientY都是undefined
所以我们要写成这样
$(".tabel").on('touchmove',function(event){
console.log(event.touches);
});
因为他是数组类的,需要定义下标。
$(".tabel").on('touchmove',function(event){
console.log(event);
});
如果直接console.log(event)的话我们看到的clientX和clientY都是undefined
所以我们要写成这样
$(".tabel").on('touchmove',function(event){
console.log(event.touches);
});