没有合适的资源?快使用搜索试试~ 我知道了~
react.js fetch 基于单例+轻提示(toast)的简单封装
0 下载量 45 浏览量
2021-01-08
13:30:08
上传
评论
收藏 39KB PDF 举报
温馨提示
试读
3页
Services /* eslint-disable no-useless-constructor */ import config from './config.js'; import 'whatwg-fetch' import toast from '../toast/index.js' export default class Services { constructor() { } // 单例 static getInstance() { if (!Services.instance) { Services.instance = new Services(); r
资源推荐
资源评论
资源评论
weixin_38710524
- 粉丝: 7
- 资源: 884
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功