美文网首页
慕课网--nodejs_2

慕课网--nodejs_2

作者: 芹菜斯_嘉丽 | 来源:发表于2016-12-12 22:42 被阅读0次

(4)http 模块

回调 将后续函数作为参数放在起始函数中作为参数。

function learn(something) { 
   console.log(something);}
function we(callback,something) {
    something += ' is cool';
    callback(something);}
we(learn,'node.js');
we(function (something) {
   console.log(something);},"jade");

同步/异步
I/O

相关文章

网友评论

      本文标题:慕课网--nodejs_2

      本文链接:https://www.haomeiwen.com/subject/mtrvmttx.html