success: function(html){
var halfh = html.height;
$('#contact_'+id).show();
$('#contact_'+id).css({'width':'90%'}).animate({
opacity: '0.6',
height: halfh
}, 500 ,'linear').animate({
opacity: '1',
},500,'linear',function(){ <--- Error on this line
$(this).html(html.content)
});
注意:我把它改为双引号,如:
opacity: "0.6",
height: halfh
}, 500 ,"linear").animate({
opacity:"1",
},500,"linear",function(){
但仍然是同样的错误:(
请帮忙。 此致
答案 0 :(得分:2)
success: function(html){
$('#contact_' + id).show().css({'width': '90%'}).animate({
opacity: 0.6,
height: html.height
}, 500, 'linear').animate({
opacity: 1
}, 500, 'linear', function() {
$(this).html(html.content);
});
}
答案 1 :(得分:2)
与我之前的评论一样。有一个尾随的逗号。
opacity:"0.6",
height: halfh
}, 500 ,"linear").animate({
opacity:"1"
},500,"linear",function(){
答案 2 :(得分:1)
}, 500 ,'linear').animate({
opacity:'1', <--- Remove this comma
},500,'linear',function(){