0
var s = skrollr.init({    
    mobileDeceleration: 1,    
    edgeStrategy: 'set',    
    forceHeight: true,    
    smoothScrolling: true,    
    smoothScrollingDuration: 300,   
    easing: {    
        WTF: Math.random,
        inverted: function(p) {
            return 1-p;
        }
    }
});

当我尝试初始化 skrollr 时,它只会给我这个错误:TypeError: Argument 1 of Window.getComputedStyle is not an object。会是什么呢?

4

1 回答 1

1

我遇到了同样的问题并将 init 放入 $(document).ready 为我解决了它。

$(document).ready(function () {
    var s = skrollr.init();
});
于 2015-09-18T20:41:09.137 回答