随笔分类 -  nodejs

摘要:bind 可以改变方法中的this指向 阅读全文
posted @ 2019-04-28 10:04 踏月而来 阅读(474) 评论(0) 推荐(0)
摘要:回调函数同步执行 回调函数异步执行 process.nextTick()可以确保asyncReal的回调总是在其他同步代码(console.log("#############"))运行完成后,event loop开始前调用的 阅读全文
posted @ 2019-04-26 16:20 踏月而来 阅读(1065) 评论(0) 推荐(0)
摘要:/********************************************************************************************************************* * 语法 * 定义 * 说明 ... 阅读全文
posted @ 2019-04-26 10:43 踏月而来 阅读(527) 评论(0) 推荐(0)
摘要:timers模块 阅读全文
posted @ 2019-04-26 09:49 踏月而来 阅读(408) 评论(0) 推荐(0)
摘要:waterfall , parallel , series , eachSeries async文档地址 https://caolan.github.io/async/docs.html#parallel 阅读全文
posted @ 2018-09-14 11:42 踏月而来 阅读(1077) 评论(0) 推荐(0)
摘要:开始总是找不到原因,是因为在启动服务时,没有设置日志文件。突然想到了是不是forever安装的有问题,就重新安装forever , 这时候提示系统 no space left on device , 采用df - h 查看磁盘占用情况。 1发现是磁盘占用率达到了100%,导致用forever 启动服 阅读全文
posted @ 2018-09-10 17:01 踏月而来 阅读(553) 评论(0) 推荐(0)