关于Get和Post的区别以及用法介绍
1.传递参数
get是通过url传递。
post是放在requestbody中传递。
如下:
get请求方式
$.ajax({
type : "get",
url : "getUserDetail?id="+id,
dataType : "json",
success : function(data) {}})
post请求方式
$.ajax({
type: 'POST',
contentType:"appl
原创
2020-07-02 11:40:02 ·
345 阅读 ·
0 评论