<script>
$.ajax({
type: "GET",
headers: {
Accept: "application/json; charset=utf-8",
Token: "XXXX"
},
withCredentials: true,
url: "http://localhost:23557/api/GetValues",
data: {"tel":"13714390531"},
contentType: "application/json",
dataType: "json",
success: function (data) {
alert(data);
},
error: function (data) {
}
});
</script>
AJAX发送带Header的请求
最新推荐文章于 2023-08-11 11:15:54 发布