rjaxbase on rxjs awesome ajax library

联合创作 · 2023-09-21 02:38

rjax


License


English | 简体中文




Features



  • Porting the excellent @angular/common/http module.

  • Responsive ajax library based on rxjs.

  • Written in TypeScript with predictable static types.

  • Powerful and easy to use.



📦
Install



yarn add rjax # or: npm install rjax --save



🔨
Usage



import { Rjax } from 'rjax';
const rjax = new Rjax();
rjax.get(`/user/12345`).subscribe(response => {
// Succeed Callback
console.log(response);
}, error => {
// Error Callback
console.log(error);
});


Docs


API document and example link


Author


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

浏览 15
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报