[英]get jquery .load() to append rather than replace?
这可能吗?
You can use jQuery.get() to append data... 您可以使用jQuery.get()追加数据...
jQuery.get("URL", function(data) {
jQuery("#myElement").append(data);
});
I believe you have to use .get
: 我相信你必须使用
.get
:
$.get('ajax/test.html', function(data) {
$('.result').append(data);
});
http://api.jquery.com/jQuery.get/ http://api.jquery.com/jQuery.get/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.