【javascript】好记性不如烂笔头

  1. 在 years[2] 中,2会被Javascript 引擎自动调用 toString 转换成一个 string 类型的变量。正因为如此,’2’ 和 ‘02’ 在years 对象中将会指向不同的位置