09 2017 档案

摘要:1、回调函数 fn1( fn2 ); 2、事件监听 3、发布-订阅 4、 promises 5、generator 6、 async 函数 阅读全文
posted @ 2017-09-18 16:43 王小窝 阅读(245) 评论(0) 推荐(0)
摘要:、istanbul 和 mocha 结合进行nodejs测试的时候最后执行 istanbul cover _mocha test.sqrt.js的时候报错 如图: 用 ../node_modules/mocha/bin/_mocha 代替 _mocha 即,执行的命令为 istanbul cover 阅读全文
posted @ 2017-09-15 15:20 王小窝 阅读(1227) 评论(0) 推荐(0)
摘要:windows 下 1、查询端口占用的进程ID: netstat -aon | findstr "80" 80为端口号, 输出为: TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 10820 2、查看端口号所对应的应用程序: tasklist | findstr " 108 阅读全文
posted @ 2017-09-15 11:07 王小窝 阅读(328) 评论(0) 推荐(0)