event-transfer-jsonp
v1.0.1
Published
jsonp request. good for http cache.
Downloads
4
Maintainers
Readme
eventTransferJsonp
It used event to transfer data,the callback is Fixed. good for http cache.
##install
npm install event-transfer-jsonp
The expose name is eventTransferJsonp
. support AMD,commonjs.
##API
###eventTransferJsonp(url, callback)
##example
eventTransferJsonp('/someurl', function(err, data){
if(err){ //the err just a event
return console.log('error', err);
}
console.log(data);
})
##Don't support IE! ##QA Can i modify the callbackName ?
No