开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜