当前位置:网站首页>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}})}边栏推荐
猜你喜欢

MySql 约束

Link reading good article: What is the difference between hot encrypted storage and cold encrypted storage?

The latest and most complete digital collection sales calendar-07.27

【写下自用】每次都忘记如何train?记录如何训练自己的yolov5

最新最全的数字藏品发售日历-07.26

基本比例尺标准分幅编号流程

来亲自手搭一个ResNet18网络

非会员更改有道云笔记背景

十年磨一剑!数字藏品行情软件,链读APP正式开放内测!

Count down the six weapons of the domestic interface collaboration platform!
随机推荐
安装Robotics-toolbox-matlab, for 点云坐标系转换
Database Notes Create Database, Table Backup
文章复现:超分辨率网络FSRCNN
Using sqlplus to operate database in shell script
【写下自用】每次都忘记如何train?记录如何训练自己的yolov5
毫米波雷达基础概念学习
pytorch框架学习(9)torchvision.transform
Chained Picks: Starbucks looks at digital collectibles and better engages customers
网络安全作业
sqlplus 显示上一条命令及可用退格键
network security firewall
链读 | 最新最全的数字藏品发售日历-07.28
redis常见的面试题
Count down the six weapons of the domestic interface collaboration platform!
来亲自手搭一个ResNet18网络
国内数字藏品投资价值分析
WSTP初体验
MySql 约束
Knowledge Distillation Thesis Learning
【el和template区别】