beautify_js
This commit is contained in:
parent
0febe4f5fd
commit
5c2f32e184
208 changed files with 3891 additions and 1474 deletions
|
@ -13,18 +13,18 @@ function accept(req, res) {
|
|||
'Cache-Control': 'no-cache'
|
||||
});
|
||||
|
||||
var i=0;
|
||||
var i = 0;
|
||||
|
||||
var timer = setInterval(write, 1000);
|
||||
write();
|
||||
|
||||
function write() {
|
||||
res.write(new Array(1000).join(++i+'') + ' ');
|
||||
res.write(new Array(1000).join(++i + '') + ' ');
|
||||
if (i == 9) {
|
||||
clearInterval(timer);
|
||||
res.end();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} else {
|
||||
file.serve(req, res);
|
||||
|
@ -39,4 +39,4 @@ if (!module.parent) {
|
|||
http.createServer(accept).listen(8080);
|
||||
} else {
|
||||
exports.accept = accept;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue