deadsimple/axioslibrary
最新稳定版本:1.0.2
Composer 安装命令:
composer require deadsimple/axioslibrary
包简介
A deadsimple module to use Axios components in your Magento2 projects
README 文档
README
Deadsimple Axios Magento2 Composer Library
This package allows you to include the latest version of axios and use on a global level together with requirejs in your Magento2 setup straight out of the box
Installation
Use composer to install the module: composer require deadsimple/axioslibrary
Usage
Using this library is easy peasy, just include the axios script through requirejs, define Axios and use it wherever you like.
define([
'Axios'
], function (axios) {
'use strict';
// Make a request for a user with a given ID
axios.get('/user?ID=12345')
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.then(function () {
// always executed
});
})
Version
This library loads: Axios v0.19.2
统计信息
- 总下载量: 2.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-15