Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 880 Bytes

README-zh_CN.md

File metadata and controls

40 lines (29 loc) · 880 Bytes

rjax

License

English | 简体中文

✨ 特性

  • 移植优秀的@angular/common/http模块。
  • 基于rxjs的响应式请求库。
  • 使用 TypeScript 构建,提供完整的类型定义文件。
  • 功能强大又简单易用。

📦 安装

yarn add rjax # 或者:npm install rjax --save

🔨 示例

import { Rjax } from 'rjax';
const rjax = new Rjax();
rjax.get(`/user/12345`).subscribe(response => {
    // 请求成功回调
    console.log(response);
}, error => {
    // 请求失败回调
    console.log(error);
});

文档

API 文档及示例 链接

作者

rjax © ppjjzz, Released under the MIT License.
Authored and maintained by ppjjzz.