vue + axios get请求 带参数 带请求头
1.引入import axios from 'axios';2.let url = "badu.com";let [accessToken,extAccessToken] = ["wewewewew","dsdddwew"]axios.get(url,{params:{this.page},headers: {'accessToken': accessToken, 'extAccessToken'
·
1.引入import axios from 'axios'; 2.let url = "badu.com"; let [accessToken,extAccessToken] = ["wewewewew","dsdddwew"] axios.get(url,{ params:{this.page}, headers: {'accessToken': accessToken, 'extAccessToken': extAccessToken}}) .then(function(result) { console.log(result.data.data); });
更多推荐
已为社区贡献1条内容
所有评论(0)