/*
* i++; 0
* --j; 4
*/
var
arr = ['a1','a2','a3','a4','a5']; var i = 0,j=arr.length,val; while(val = arr[i++]){ console.log(val) } while(val = arr[--j]){ console.log(val) }

 

posted on 2013-03-11 14:53  somesayss  阅读(1528)  评论(0编辑  收藏  举报