ITeye博客

鱼没牙

ArcTan · 共 2 篇文章

JavaScript中的两个“0”(翻译)

本文翻译自 JavaScript’s two zeros JavaScript has two zeros: −0 and +0. This post explains why that is and where it matters in practice. JavaScript 中有两个“0”: -0 和 +0 。这篇文章解释了为什么,并且指出实际生产中会造成什么影响 1.The signed zero 1.“-0” Numbers always need to be encoded to be stored digitally. Why do some encodings have t…

2012-04-15 13:32 · 编程技巧 · 评论(0)

扩展JavaScript的正确方法(翻译)

本文翻译自【 Extending JavaScript – The Right Way 】 JavaScript comes with a lot of great functionality built in, but what if there is a function you need which is missing. How can we build them in seaminglessly in an elegant way that extends the functionality of our beloved JavaScript. The following will…

2012-04-15 00:52 · 编程技巧 · 评论(0)