ajax 传递 token
ajax通过headers传递token
$.ajax({ url:"http://wxapi.tech.com/api/patients", type:"get", headers:{'Accept': 'aplication/json','Authorization':'Bearer '+ token}, // 重点 success:function(data){}, error:function(){} });
ajax通过headers传递token
$.ajax({ url:"http://wxapi.tech.com/api/patients", type:"get", headers:{'Accept': 'aplication/json','Authorization':'Bearer '+ token}, // 重点 success:function(data){}, error:function(){} });