通知公告
',
domLoad: '
加载中
',
domNoData: '
无更多数据
'
},
loadDownFn: function(me) {
var url = urlBase + 'index_10419' + ((counter == 0) ? ('') : ('_' + (counter))) + '.html';
$.ajax({
url: url,
success: function(data) {
// console.log("OD:" + data);
if (data.indexOf('') != -1) {
console.log('ok')
me.lock();
me.noData();
} else {
data = JSON.parse(clearDot(trimBlank(clearBr(data))));
var result = '';
counter++;
if (data.newsList.length > 0) {
for (var i = 0; i < data.newsList.length; i++) {
result += '
' +
'' + data.newsList[i].title +
'' +
'' + data.newsList[i].time + '' +
'';
}
} else if (url == null) {
me.lock();
me.noData();
} else {
me.lock();
me.noData();
}
}
setTimeout(function() {
$('#dataList').append(result);
me.resetload();
}, 0);
},
error: function() {
me.lock();
me.noData();
me.resetload();
}
});
},
threshold: 250
});
});