https.js
v1.0.3
Published
This is a pure JavaScript small program, does not need third-party software support
Downloads
16
Readme
https.js
This is a pure JavaScript small program, does not need third-party software support
Features
- Pure JavaScript writing
- A simple class file
Code Example
var url = "https://examples.com";
var res_function = function(res, status) {
if( status == 200){ //ok
var responseText = JSON.parse(res);
// responseText
}
}
var ARGUMENTS = {URL:url, RES_FUNCTION:res_function, HEADER:{'Content-type':'application/json;charset=UTF-8'}};
https(ARGUMENTS);
If you need to learn more, go to more examples.
Author
weibo: yakeing
twitter: yakeing