ajaxPost
$.ajax({
type: "Post",
url: api + "/stLogin",
data: JSON.stringify({ "name": name, "pwd": pwd}),
dataType: "json",
contentType: "application/json",
success: function (data) {
下面这个和get不一样,不写容易报错
dataType: "json",
contentType: "application/json",
get是这样的
//$.ajax({
// type: "get",
// url: aongid=" + loingiddel + "",
// //data: { "uid_long": uid_long, "zblongid": zblongid },
// dataType: "json",
// success: function (data) {
原文地址:https://blog.csdn.net/qq_37159134/article/details/143856311
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!