所以网上有很多关于这个的文章,都是一样的,都行不通
我想要做的是在无限滚动运行后运行一个 JS 函数。
当我尝试运行它时,出现语法错误 SyntaxError: missing : after property id, function(arrayOfNewElems) {
<script>
if ( ! navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/)) {
var infinite_scroll = {
loading: {
img: "<?php echo get_template_directory_uri(); ?>/images/ajax-loader.gif",
msgText: "<?php _e( 'Loading the next set of products...', 'woothemes' ); ?>",
finishedMsg: "<?php _e( 'All products loaded.', 'woothemes' ); ?>"
}, function(arrayOfNewElems) {
$('img')equalHeights();
});,
"nextSelector":".pagination a.next",
"navSelector":".pagination",
"itemSelector":"#main .product",
"contentSelector":"#main ul.products"
};
jQuery( infinite_scroll.contentSelector ).infinitescroll( infinite_scroll );
}
</script>
有谁知道如何运行函数 equalHeights();