use prototype-1.6.0.3

---- code ----
var array = [];
console.log('length: ' + array.length);
for(var i in array) {
  console.log('key: ' + i);
  console.log('val: ' + array[i]);
}
----/ code ----

---- result ----
length: 0
key: each
val: function (iterator, context) { ... }
key: eachSlice
val: function (number, iterator, context) { ... }
  ...
key: toJSON
val: function () { ... }
----/ result ----


if use prototype.js, can't use "for..in" for Array object ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to