node命令行问题,如何不让命令行输出undefined呢?
发布于 10 年前 作者 kingapple 6389 次浏览 最后一次编辑是 8 年前

<img src=http://img.itc.cn/photo/olkgFh4d8bk> 不输出这货,看起来简洁点:)

4 回复

function没有返回值,所以输出 undefined function hello() { console.log(‘hello’); return true; } 就是true了。

@SoftICE 不想return<,也不要给偶输出undefined:(

@SoftICE 你调试内核的?

回到顶部