使用jQuery效果将Html添加到Div

我想将Ajax请求中的Loaded html添加到Div效果(例如向下滑动)。
我正在使用此代码,但它还没有效果:

obj.html(msg.d).show('slow'); 

可能吗 ?

更新:这是我的完整代码:

  $.ajax({ type: "POST", url: options.webServiceName + "/" + options.renderUCMethod, data: options.ucMethodJsonParams, contentType: "application/json; charset=utf-8", dataType: "json", cache: true, success: function (msg) { var html = msg.d; obj.html(msg.d).show('slow'); // if specified make callback and pass element if (options.completeHandler) options.completeHandler(this); }, error: function (XMLHttpRequest, textStatus, errorThrown) { if (options.errorHandler) { options.errorHandler(this); } else { obj.html("error"); } } }); 

应该工作 – 我认为“obj”是一个,你可以尝试将它分成两个,以确保你没有任何有趣的事情发生。

$(obj).html(msg.d); $(obj).show(500); // 500 ms animation time

是的,你可以,但你的对象最初必须隐藏,所以:

 obj.hide().html(msg.d).show('slow'); 

希望这可以帮助。 干杯