图片懒加载报错

Image lazy loading throws an error

我对应该延迟加载的图像有疑问。当我更喜欢这一切 抛出一些错误,例如 Uncaught TypeError: (intermediate value) is not a constructor。这是一个example

window.bLazy = new new Blazy({
  success: function(element) {
    setTimeout(function() {
        var parent = element.parentNode;
        parent.className = parent.className.replace(/\bloading\b/, '');
    }, 200);
  }
});

有什么建议吗?

new 关键字已被使用两次。