触屏事件
作者:互联网
var div = document.querySelector('div'); div.addEventListener('touchstart', function() { console.log('触摸'); }); div.addEventListener('touchmove', function() { console.log('移动'); }); div.addEventListener('touchend', function() { console.log('离开'); });\
标签:function,console,log,事件,addEventListener,touchstart,div,触屏 来源: https://www.cnblogs.com/ericblog1992/p/13062154.html