function asyncGetData(feedUrl) {
return $.ajax({ url: feedUrl, dataType: "jsonp", jsonp: "jsonp" });
}
function refresh(feed) {
var feedUrl = feed.url + feed.pageIndex;
var feedContainer = $("#" + feed.containerId);
var pdata = asyncGetData(feedUrl);
pdata.done(function(data) {
var container = feedContainer;
container.empty();
feed.totalCount=data.TotalItems;
for(var i = 0; i " + value + "");
var text = node.text();
var max = 150;
if(text.length > max) {
text = text.substring(0, max);
text = text.replace(/\w+$/, '');
value = text + "...";
}
else{
value = text;
}
}
return value;
}});
}
$(function() {
for(var i = 0; i
mayweather vs cotto shumpert hopkins hopkins dear john derrick rose torn acl pacers
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.