8
で働いていない私はこのようにしようとそのiphonejqueryのtouchstartイベントはiphone
$(document).bind('touchstart',function(){
alert('hello');
});
に動作していないが、そのは、どのようにjQueryを使って作業touchstartイベントを取得するには、この
document.addEventListener('touchstart', function(){
alert('hello');
}, false);
のように働いていますか?
そのは
$(document).on('touchstart', function(e){
//e.preventDefault();
var touch = e.touches[0] || e.changedTouches[0];
});
での作業が、エラーe.touchesを取得は、あなたがe.originalEventを使用することができますタッチのプロパティを取得するには、オブジェクト
あなたは試してみました: $(document).on( 'touchstart'、function(){ alert( 'hello'); }); ? –
更新された質問を見る – coure2011