json格式的ajax传输交互

2021-05-19 01:29

阅读:284

标签:app   response   token   ica   sage   item   传输   function   content   

/*设置呼叫转移*/
var ownerId = localStorage.getItem("ownerId");
var roomId = localStorage.getItem("roomId");
var ownerPhone = localStorage.getItem("ownerPhone");

var request_body = [
{
"ownerId":ownerId,
"roomId":roomId,
"ownerPhone":ownerPhone
}
];
$(".grayg").click(function(){
$(this).addClass("none");
$(".blueg").removeClass("none");
$.ajax({
url:TAG_URL+‘/owner/call‘,
data:JSON.stringify(request_body),
type:‘POST‘,
dataType:‘JSON‘,
contentType:‘application/json‘,
headers: {
"token" : TD.getSession(), //TOKEN
},
success:function(response){
mui.alert(response.message);
}
});
});

json格式的ajax传输交互

标签:app   response   token   ica   sage   item   传输   function   content   

原文地址:http://www.cnblogs.com/shoolnight/p/7723361.html


评论


亲,登录后才可以留言!