js用for...in 这种遍历的方式
var
arr =
new
Array(
"first"
,
"second"
,
"third"
)
for
(
var
item
in
arr) {
document.write(arr[item]+
","
);
}
愿你遍历山河
仍觉人间值得
var
arr =
new
Array(
"first"
,
"second"
,
"third"
)
for
(
var
item
in
arr) {
document.write(arr[item]+
","
);
}