【发布时间】:2011-08-02 11:25:12
【问题描述】:
我的问题很简单,如何使用 jquery ajax 命令检索某些 div
$.ajax({
url: "test.html",
success: function(){
$(this).addClass("done");
}
});
喜欢负载
$('#targetDiv').load('http://localhost/test.html #sourceDiv');
【问题讨论】:
-
你有没有理由不简单地使用
load()?