原版71頁
If both values are null or both values are undefined, they are equal.
譯版75頁
如果兩個值都是null或者都是undefined,則它們不相等。
====================================================
原版84頁
var a = [1,2,3]; // Start with an arraydelete a[2]; // Delete the last element of the arraya.length // => 2: array only has two elements now
譯版88頁
var a = [1,2,3]; // 定義一個數組delete a[2]; // 刪除最后一個數組元素
2 in a;//=>false:元素2在數組中已經不存在了a.length // => 3:注意,數組長度并沒有改變,盡管上一行代碼刪除了這個元素,但刪除操作留下了一個“洞”,實際上并沒有修改數組的長度,因此a數組的長度仍然是3
javascript權威指南的一些錯誤?
慕田峪7331174
2018-12-07 11:02:13