当前位置:网站首页>Small program wx.request simple Promise package
Small program wx.request simple Promise package
2022-08-10 05:48:00 【Brahma pigeon】
//public request jsimport {baseURL} from "./config.js"export default function request(option){return new Promise((resolve,reject)=>{wx.request({url: baseURL + option.url,method: option.method || 'get',data: option.data,success: resolve,fail:function(err){reject(err)}})})}// specific page data requestimport request from "./network.js"export function getMultiData(){return request({url: '/home/multidata'})}export function getHomeGoods(type,page){return request({url:'/home/data',data:{type,page}})}边栏推荐
- 使用Google Protobuf 在 Matlab 中工作
- Chain Reading | The latest and most complete digital collection calendar-07.28
- pytorch框架学习(6)训练一个简单的自己的CNN (三)细节篇
- The latest and most complete digital collection sales calendar-07.26
- latex图片排版技巧总结
- 索引笔记【】【】
- 【论文笔记1】小样本分类
- Canal 报错 Could not find first log file name in binary log index file
- 事务、存储引擎
- 图片批量添加水印批量缩放图片到指定大小
猜你喜欢

文章复现:超分辨率网络FSRCNN

深度学习中数据到底要不要归一化?实测数据来说明!

自适应空间特征融合( adaptively spatial feature fusion)一种基于数据驱动的金字塔特征融合策略

tinymce富文本编辑器

Chained Picks: Starbucks looks at digital collectibles and better engages customers

Batch add watermark to pictures batch add background zoom batch merge tool picUnionV4.0

数据库 笔记 创建数据库、表 备份

Pony语言学习(一):环境配置(续)

view【】【】【】【】

Qiskit 学习笔记1
随机推荐
行盒子的盒模型
关于cfar检测的学习及仿真
事务、存储引擎
【论文笔记1】小样本分类
Chain Reading|The latest and most complete digital collection sales calendar-08.02
训练集Loss收敛,但是测试集Loss震荡的厉害?
shell脚本中利用sqlplus操作数据库
链读好文:热加密存储与冷加密存储有什么区别?
网络安全之防火墙
MySql constraints
安装Robotics-toolbox-matlab, for 点云坐标系转换
第十天作业
Mockito基本使用指南
索引笔记【】【】
Linux数据库Oracle客户端安装,用于shell脚本用sqlplus连接数据库
Operation table Function usage
速刷正则表达式一周目(上)
笔记1
latex图片排版技巧总结
Multi-table query Notes