所以网上有关于这个很多文章,都同样的事情,都没有工作自定义脚本回调infinitescroll.js
我想要做的就是运行一个JS功能无限滚动运行之后什么。
当我尝试运行它我得到的语法错误 语法错误:缺少:楼盘序号,函数(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( );
问题不在于infinitescroll.js,您的代码有几个语法错误。 – kapa