标签:ted post tor data pen $.ajax str pos rate
post请求
var url = this.server + "?action=dwm_canbeoperated&tablename=" + tableName;
url = $yw.g.id.appendUrl(url);
data = JSON.stringify(data);
var postData = {"data": data};
$.ajax({
async: false,
cache: false,
type: ‘POST‘,
data: postData,
url: url,
success: function (data) {
result = data;
result.type = "undelete";
}
})
get请求
$.ajax({
async: false,
cache: false,
type: ‘GET‘,
url: edpurl,
uccess: function (data) {
var rows = data.rows;
result.dataoperatorid = rows[0];
}
});
标签:ted post tor data pen $.ajax str pos rate
原文地址:http://www.cnblogs.com/gym2017/p/7228185.html