xcat-ajax

0.2.1 • Public • Published

使用 node api 实现的 ajax 请求,browserify 之后可以方便的在浏览器端使用

使用方式

var ajax = require('mtfe_ajax');
 
ajax({
  url: '/hello',
  data: {
    foo: 'bar'
  },
  callback: function(error, data) {
    if (error) {
      // Do something with the error
    }
    console.log(data);
  }
});
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    0

Package Sidebar

Install

npm i xcat-ajax

Weekly Downloads

0

Version

0.2.1

License

MIT

Last publish

Collaborators

  • xcatliu