摘要:
/** * Perform no operation. * Stubbing args to make Flow happy without leaving useless transpiled code * with ...rest (https://flow.org/blog/2017/05/0 阅读全文
摘要:
今天看源码的时候看到 void 0 这样的写法,平时在业务代码里基本没有这样的写法,于是学习了一下。 在控制台运行了一下void 0,得到返回值是undefined。 在MDN上搜了一下void,了解到: void是个运算符 void用于获取原始数据类型undefined void可以将functi 阅读全文