闭包编译器返回 void 和返回 undefined 的区别
Closure compiler difference between returning void and returning undefined
在闭包编译器中,返回 void
类型与返回 undefined
类型之间有什么区别吗?
/**
* @return {void}
*/
function myFunction() {}
/**
* @return {undefined}
*/
function myFunction2() {}
@type {void}
对 Closure Compiler 的意义与 @type {undefined}
相同。随便用。
在闭包编译器中,返回 void
类型与返回 undefined
类型之间有什么区别吗?
/**
* @return {void}
*/
function myFunction() {}
/**
* @return {undefined}
*/
function myFunction2() {}
@type {void}
对 Closure Compiler 的意义与 @type {undefined}
相同。随便用。