0.2.1 • Published 10 years ago

xcat-ajax v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 years ago

使用 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);
  }
});
0.2.1

10 years ago