快捷导航

index = (index+1)%imageArr.length;这句代码什么意思?还有有没有

[img=400px,400px]https://www.eravik.com/[/img]


        <script>
                var imageArr = ['http://eduppp.cn/images/0/1.jpg','http://eduppp.cn/images/0/2.jpg',
                'http://eduppp.cn/images/0/3.jpg','http://eduppp.cn/images/0/4.jpg'];
                var index=0;
                function autoPlay(){
                        var imgObj=document.getElementById('img');
                        //imgObj.style.display='inline';

                        if(imageArr.length

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员1

获取图片数组的索引
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP