Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 332 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 332 Bytes

core-image-xhr

a simple image ajax handler

Start

npm i core-image-xhr --save
import xhr from 'core-image-xhr';

xhr(method, url, header, data, successCallback, errorCallback);
  • method 'POST' or 'GET'

  • url

  • header Object

  • data Object

  • successCallback function

  • errorCallback function