$().load
最后更新于:2022-04-02 03:19:32
[TOC]
## $().load
语法
```
.load( url [, data ] [, complete(responseText, textStatus, XMLHttpRequest) ] )
```
## 示例
### hello world
```
$('#result').load('ajax/test.html', function() {
alert('Load was performed.');
});
```
### 带请求参数
```
$("#feeds").load("feeds.php", {limit: 25}, function(){
alert("The last 25 entries in the feed have been loaded");
});
```
### 请求前显示 loading
```
$('#result').html("
';
loading
").load('ajax/test.html', function() { alert('Load was performed.'); }); ```