多回调代码:
<script>
$(document).ready(function(){
$.get("realisations.shtml",function(data){$('#realisations').empty().append(data)});
});
</script>
我需要执行$( “toexpand”)隐藏(); beeing确认后的数据加载到DIV
这种尝试不工作:
<script>
$(document).ready(function(){
$.get("realisations.shtml",function(data){$('#realisations').empty().append(data)},function(){$(".toexpand").hide()});
});
</script>
您不需要有多个回调,只需在单个回调中执行多个语句即可。 – tvanfosson 2009-11-26 14:36:44