touchstart無法觸發(fā),瀏覽器顯示TypeError
$(document).addEventListener('touchstart',function (event) {
? ? ? ? ? ?startx=event.touches[0].pageX;
? ? ? ? ? ?starty=event.touches[0].pageY;
? ? ? ? ? ?console.log("事件觸發(fā)")
});
在webStorm下touches報錯,touchend部分也一樣。求解決?
2016-11-23
2016-11-23
為什么要這樣呢?
$(document). ? 。。。