1. 程式人生 > >移動端上拉載入demo

移動端上拉載入demo

({ url: '', type: 'post', headers: {'X-CSRF-TOKEN': $('meta[name="csrf_token"]').attr('content')}, data: { skip: skip }, dataType: 'json', success: function (data) { if(data.success){ $(".more"
)
.attr("abc",data.info.skip); var obj = Object.keys(data.info.products) if(obj.length > 0){ var arr=data.info.products; var path = '{{ env('CDN_DOMAIN_NAME') }}'; var html="<ul>....</ul>"
$('.other_list').append(html) }else{ $(".more_center").empty(); $(".more_center").text("我是有底線的"); } myscroll.refresh(); }else{ } } })
; }