8
工作我想這樣和它不是在iphonejQuery的touchstart事件不是iphone
$(document).bind('touchstart',function(){
alert('hello');
});
工作,但它的工作是這樣
document.addEventListener('touchstart', function(){
alert('hello');
}, false);
如何獲得touchstart事件使用jQuery?
及其與
$(document).on('touchstart', function(e){
//e.preventDefault();
var touch = e.touches[0] || e.changedTouches[0];
});
工作,但得到錯誤e.touches不是一個對象
您是否嘗試過: $(document).on('touchstart',function(){ alert('hello'); }); ? – 2012-02-22 07:37:21
查看更新的問題 – coure2011 2012-02-22 07:50:03