JavaScript: what does "void 0" mean?
This question already has an answer here:
The void
operator always evaluates as the undefined value.
The undefined
variable, which defaults to holding the undefined value, can be overwritten.
The void operator evaluates the given expression and then returns undefined.
The void operator is often used merely to obtain the undefined primitive value, usually using “void(0)” (which is equivalent to “void 0”). In these cases, the global variable undefined can be used instead (assuming it has not been assigned to a non-default value).
链接地址: http://www.djcxy.com/p/45812.html上一篇: 'void 0'是什么意思?