Skip to content
Promise based HTTP client for the browser/node.js/wechat miniprogram
JavaScript TypeScript HTML
Branch: master
Clone or download
Pull request Compare This branch is 11 commits ahead, 19 commits behind axios:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
dist
examples
lib
sandbox
test
.eslintrc.js
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
COLLABORATOR_GUIDE.md
CONTRIBUTING.md
COOKBOOK.md
ECOSYSTEM.md
Gruntfile.js
LICENSE
README.md
UPGRADE_GUIDE.md
bower.json
index.d.ts
index.js
karma.conf.js
package.json
webpack.config.js

README.md

Source

Forked from axios

Extra

support wechat miniprogram request

Install

npm install wx-axios --save

Use

import axios from 'wx-axios';

And then you can use axios in wechat miniprogram as usual.

Tip

if you can't use npm, you can clone this respo and npm run build, then get axios.min.js from './dist/'. Clone this file into your miniprogram project utils. However, you can use it: import axios from './utils/axios.min.js';

Run weapp example

if you use native wechat-weapp,you should see code in native-wechat-weapp in the folder 'examples'; if you use wepy to build your weapp,you can run npm run wepy-example to get an example. In order to use native wechat-app or wepy,you ought to view offical documentation

You can’t perform that action at this time.