1.0.1-alpha.5 • Published 4 years ago
dudup-weixin v1.0.1-alpha.5
微信小程序端上传基类
安装
# NPM
$ npm i dudup-weixin
# YARN
$ yarn add dudup-weixin
使用
import { Types } from 'dudup'
import { WeixinRequestor, WeixinUploadFile } from 'dudup-weixin'
import MySender from './MySender'
/**
* (!) 注意: 这里的 MySender 指的是继承 dudup/libs/Sender
*/
export default class Uploader extends MySender {
constructor(options?: Types.SenderOptions) {
super(WeixinRequestor, WeixinUploadFile, options)
}
}
注意
因为继承需要重写的函数比较多, 建议使用 Typescript
进行拓展, 否则容易错漏.
1.0.1-alpha.5
4 years ago
1.0.1-alpha.3
4 years ago
1.0.1-alpha.2
4 years ago
1.0.1-alpha.1
4 years ago
1.0.1-alpha.0
4 years ago