2017-09-12 67 views

回答

1

你最有可能要使用touchstarttouchmovetouchend電話。其他鼠標事件,如click仍然有效。

+0

我試過 document.body.ontouchmove = function(){ console.log(「it's worked」); } 但在Chrome手機瀏覽器中沒有結果 –

+0

我不相信'.ontouchmove'是一個函數。嘗試'document.body.addEventListener('touchmove',function(){console.log(「它的工作」)})' – heron

相關問題