我正在使用ajax加载新页面,但它只显示共享按钮而不显示共享计数。
$("body a").click(function(e) {
$.ajax({
url: ajax_url,
type: "GET",
dataType: "xml"
}).done(function(data, textStatus, jqXHR) {
if (typeof(history.pushState) != "undefined") {
var obj = {
Title: title,
Url: url
};
history.pushState(obj, obj.Title, obj.Url);
} else {
alert("Browser does not support HTML5.");
}
var $divToFind = $($.parseHTML(jqXHR.responseText)).filter("#radio-main-wrapper");
$('#radio-main-wrapper').html($($divToFind).html());
$.getScript("http://w.sharethis.com/button/buttons.js");
stButtons.locateElements();
}).fail(function(jqXHR, textStatus, errorThrown) {
});
});
答案 0 :(得分:0)