平成30/ 2018-12-19 17:44
javascriptでforeachと同等のことをする

var cc;
var c = document.cookie;
c = c.split(';');
for( cc in c ){
    alert(c[cc]);
}

( Thanks. )
http://kawama.jp/archives/2007/02/javascriptforea.html
var hairetsu = [1,2,3,4,5,6];
for (var i in hairetsu){
alert(i);

}