标签:
function makeLove() { var ups = $(".fa-thumbs-o-up"); for (var i = 0,len = ups.length;i < len; i++) { makeAsLove(ups[i]); } } makeLove(); function ajax_get(the_url, succ_callback) { var temp_callback = succ_callback; if(the_url.indexOf(‘/widgets/check-top-log‘) == 0) { temp_callback = function(data) { succ_callback.call(this, data); makeLove(); } } jQuery.ajax({ type: ‘GET‘, cache: true, url: the_url, success: temp_callback, error: function (html) { } }); }
标签:
原文地址:http://my.oschina.net/janric/blog/410525