前端笔记整理完成

This commit is contained in:
estomm
2022-04-18 23:03:54 +08:00
parent bb9110d289
commit 3d6284517e
50 changed files with 5685 additions and 15 deletions

View File

@@ -58,4 +58,17 @@ $("button").click(function(){
alert("数据: \n" + data + "\n状态: " + status);
});
});
```
## 2 GET JSON方法
GET - 从指定的资源请求数据.GET 基本上用于从服务器获得取回数据。注释GET 方法可能返回缓存数据。
```
$.getJSON(URL,callback);
$("button").click(function(){
$.get("demo_test.php",function(data,status){
alert("数据: " + data + "\n状态: " + status);
});
});
```