添加事件时 ias 未定义

ias is undefined while adding event

我的脚本中有这个:

jQuery(document).ready(function(){
    var ias = jQuery.ias({
        container : ".category-products",
        item : "#products-list",
        next : "a.next",
        pagination : '.pages',
        loader : '<img src="/skin/adminhtml/default/enterprise/images/ajax-loader-tr.gif" alt="Loading...">',
        triggerPageThreshold : 9999
    });
    ias.on('loaded', function (items) { //Uncaught TypeError: Cannot read property 'on' of undefined
        console.log('random');
    })
});

这是我的头部分:

<script type="text/javascript" src="https://www.digitalcinema.com.au/skin/frontend/enterprise/helloshopper/js/jquery.min.js"></script>
<script type="text/javascript" src="../js/auto-load/jquery-ias.min.js"></script>

滚动时,正在加载新项目,但 ias.on('loaded', function (items) 抛出错误。

Uncaught TypeError: Cannot read property 'on' of undefined

我做错了什么?

对加载的新项目使用 onLoadItems,如::

jQuery.ias({
    container : ".category-products",
    item : "#products-list",
    next : "a.next",
    pagination : '.pages',
    loader : '<img src=".." alt="Loading...">',
    triggerPageThreshold : 9999,
    onLoadItems: function( items ) {
        console.log('item loaded');
    }
});