We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
作者您好,关于支付宝小程序已经支持put,delete等请求方法,作者能否支持一下呢
The text was updated successfully, but these errors were encountered:
uni 的文档 仍然显示没有支持。https://uniapp.dcloud.net.cn/api/request/request.html; 所有目前没有支持计划。
解决方案,因为 是基于class 类开发的,你可以很简单的扩展自己的类方法。如
import Request from 'luch-request' Request.prototype.mPut = function(url, data, options = {}) { return this.middleware({ url, data, method: 'PUT', ...options }) } Request.prototype.mDelete = function(url, data, options = {}) { return this.middleware({ url, data, method: 'DELETE', ...options }) }
Sorry, something went wrong.
当然你也可以 覆盖 原本的 put delete 方法
好的,谢谢作者
No branches or pull requests
作者您好,关于支付宝小程序已经支持put,delete等请求方法,作者能否支持一下呢
The text was updated successfully, but these errors were encountered: