var a={};why error?
var i=0;
while(i<10){
a[i]=i*i;
i++;
}
//work!
if (a.["5"]==25)
alert("success");
//error!
if (a.5==25)
alert("success");![]()
|
|
Results 1 to 3 of 3
Threaded View
Thread InformationUsers Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) Tags for this Thread |
|
Bookmarks