本文介绍了alias在实际工作中的一个场景,重点体验下alias的好处,并没有什么技术难度。
关于js里undefined的重写问题
在Javascript Garden里读到这样一句话
The language also defines a global variable that has the value of undefined;this variable is also called undefined. However, this variable is neither a constant nor a keyword of the language. This means that its value can be easily overwritten.
他老人家的意思是,undefined
可以被重写。那么问题就来了。
那么在ECMAScript 5里,undefined究竟能不能被重写呢?