开发者

How would I convert this javascript to jquery?

开发者 https://www.devze.com 2023-01-12 06:28 出处:网络
function loaded() { document.addEventListener(\'touchmove\', function(e){ e.preventDefault(); }); myScroll = new iScroll(\'scroller\');
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

精彩评论

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