$.ajax({ type:"get", url:'http://localhost:8000/api/chunnels/', headers:{ "Authorization":localStorage.getItem("token"), }, beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Authorization", localStorage.token); }, success:function(data) { console.log('Chunnel', data) } })
添加回答
举报
0/150
提交
取消