How would I convert this javascript to jquery?
function loaded() {
document.addEventListener('touchmove', function(e){ e.preventDefault(); });
myScroll = new iScroll('scroller');
}
document.addEventListener('DOMContentLoaded', loaded);
I开发者_JS百科f its possible...
Thanks :)$(function() {
$(document).bind('touchmove', function(e) { e.preventDefault(); });
var blah = new iScroll('scroller');
});
i believe this would work.
精彩评论