In JavaScript, numeric strings and numbers are interchangeable, so
myObject[1] == myObject['1']
If you really want the number to be the key for the object, you may need an array (that is, created using new Array() or [] ).
William Niu Sep 03 '10 at 6:02 2010-09-03 06:02
source share