uni.request({
url: 'https://www.example.com/request', //仅为示例,并非真实接口地址。
data: {
text: 'uni.request'
},
header: {
'custom-header': 'hello' //自定义请求头信息
},
success: (res) => {
console.log(res.data);
this.text = 'request success';
}
});
uniapp发起网络请求
猜你喜欢
转载自blog.csdn.net/qq2942713658/article/details/114055527
今日推荐
周排行