【发布时间】:2012-10-23 02:20:25
【问题描述】:
我有一个历史 API 脚本,它使用 jQuery 从页面加载新内容。如何淡入标题为#load 的新加载的div?
$.ajax({
url: url,
type: 'GET',
dataType: "html",
success: function (responseData) {
$("#main").html($("#load", responseData).html());
if (url =='Home'){
$.get("phpscripts/getFeed.php",function(result){
$("#newsFeed").html(result);
});
}
},
error: function (jqXHR, textStatus, errorThrown) {
alert(jqXHR.status + " : " + errorThrown);
}
});
【问题讨论】:
-
您可以尝试使用 Jquery.fadeIn() 。 api.jquery.com/fadeIn
标签: jquery