我搜索了一下,看看这里是否有类似的帖子,如果有人发现它很抱歉重复。
所以我的困境是:
给出下面的代码,为什么我返回的数据加载然后消失?
CSS
#contentbg{
background-image: url(../images/jp_01.jpg);
background-repeat: no-repeat;
background-position: top;
position: absolute;
width: 755px;
height: 629px;
}
#content{
position: relative;
}
JS
function getHome(){
$.post("php/functions.php?s=home",
function(data) {
$('#content').html(data);
});
};