json格式的ajax传输交互
2021-05-19 01:29
标签:app response token ica sage item 传输 function content /*设置呼叫转移*/ var request_body = [ json格式的ajax传输交互 标签:app response token ica sage item 传输 function content 原文地址:http://www.cnblogs.com/shoolnight/p/7723361.html
var ownerId = localStorage.getItem("ownerId");
var roomId = localStorage.getItem("roomId");
var ownerPhone = localStorage.getItem("ownerPhone");
{
"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);
}
});
});
上一篇:JS中Boolean()转换
下一篇:OpenSSL 1.0.0生成p12、jks、crt等格式证书的命令个过程 -参考自http://lavasoft.blog.51cto.com/62575/1104993/