Skip to content

Amorites/wxapp-fetch

This branch is 4 commits behind axetroy/wxapp-fetch:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d5d8ad7 · Oct 21, 2017

History

10 Commits
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Jul 2, 2017
Oct 21, 2017
Jul 2, 2017
Oct 20, 2017
Oct 20, 2017
Jul 2, 2017
Oct 20, 2017

Repository files navigation

wxapp-fetch

Greenkeeper badge Build Status Dependency License Prettier Node npm version

微信小程序的fetch接口实现

Features

  • 队列化请求,规避最高并发数量5个的限制

Installation

npm install wxapp-fetch --save

example

Usage

import wxFetch from 'wxapp-http';

wxFetch('https://www.google.com')
  .then(function(res) {
    return res.json();
  })
  .then(data => {
    console.info(data);
  })
  .catch(err => {
    console.error(err);
    console.error(err.json());
  });

Related

wxapp-http 微信小程序的http模块,Tiny but Powerful

wxapp-XMLHttpRequest Web XMLHttpRequest implement for WeChat APP

wxapp-r2 r2 implement in Wechat App client

Contributing

git clone https://github.com/axetroy/wxapp-fetch.git
cd ./wxapp-fetch
yarn
yarn start
  1. 打开微信web开发者工具, 加载wxapp-http/example目录
  2. 修改index.js

欢迎PR.

You can flow Contribute Guide

Contributors


Axetroy

💻 🔌 ⚠️ 🐛 🎨

License

The MIT License

About

fetch API implement for WeChat App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%