百度空间 | 百度首页 
 
查看文章
 
幻灯片
2009年08月19日 星期三 下午 06:32

var a=[1,2,3,4,5,6,7,8,9,10];

Array.prototype.next=function(){
if (this.index==null||this.index==(this.length-1))
{
this.index=-1;
}
this.index++;
return this[this.index];
}

var b =3;
a.index=b-1;
for (var i=0;i<a.length ;i++ )
{
document.write(a.next());
}


类别:默认分类 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu