This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http') | |
| const url = require('url') | |
| const path = require('path') | |
| const fs = require('fs') | |
| const mime = { | |
| "html": "text/html", | |
| "css": "text/css", | |
| "js": "text/javascript", | |
| "json": "application/json", | |
| "gif": "image/gif", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Ajax = (function() { | |
| var methodsList = ['get', 'post', 'head', 'options', 'put', 'connect', 'trace', 'delete']; | |
| /** | |
| * Ajax | |
| * @param {String} url | |
| * @param {Function} callback | |
| * @param {Object/String} data | |
| * @param {Object} options | |
| * |