摘要:
1.assert() 大体理解意思:assert可以抽象理解为node中的alert++ assert模块是Node的内置模块,用于断言的作用,如果不是自己想要的就抛出错误 assert(arg1, arg2)该方法接受两个参数 第一个参数如果为true, 不会提示,返回undefined;如果为f 阅读全文
posted @ 2018-01-15 19:43 金-Fish 阅读(206) 评论(0) 推荐(0)
posted @ 2018-01-15 19:43 金-Fish 阅读(206) 评论(0) 推荐(0)