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(){} });