一、当第一次未加载完时会出现重复加载的情况。我的解决办法时加了个startScrollPagination;在beforeLoad和afterLoad中配合作用stopScrollPagination和startScrollPagination;
二、分页问题搞了很久,开始打算定义个全局变量或搞个hidden input来配合contentData使用,都没能成功,最终直接修改源代码解决问题;
/*
** Anderson Ferminiano
** contato@andersonferminiano.com -- feel free to contact me for bugs or new implementations.
** jQuery ScrollPagination
** 28th/March/2011
** http://andersonferminiano.com/jqueryscrollpagination/
** You may use this script for free, but keep my credits.
** Thank you.
*/
(function( $ ){
$.fn.scrollPagination = function(options) {
var opts = $.extend($.fn.scrollPagination.defaults, options);
var target = opts.scrollTarget;
if (target == null){
target = obj;
}
opts.scrollTarget = target;
return this.each(function() {
$.fn.scrollPagination.init($(this), opts);
});
};
$.fn.stopScrol