Skip to content
On this page

REQUEST 已发布

request请求方法,可以通过 method 请求参数指定请求方式,见 uniapp request api

使用示例

ts
request.request('/user/info', {
	user_id: 1
}, {
	method: 'GET'
})
	.then((res) => {
		// 此处可自定义业务逻辑
	})
	.catch((err) => {
		// 此处仅为演示
		console.error('请求服务异常');
	});

本文档内容版权为 Lwu-Request 官方团队所有,保留所有权利。