1 Star 0 Fork 0

Lee1212/轮播

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
前20项.html 669 Bytes
一键复制 编辑 原始数据 按行查看 历史
Administrator 提交于 2017-08-03 15:09 . zifu
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
var a1=[1,1];
document.write(a1[0]+"<br/>");
document.write(a1[1]+"<br/>");
for(var i=2;i<20;i++){
a1[i]=a1[i-2]+a1[i-1]
document.write(a1[i]+"<br/>")
}
a1.forEach(function(value,index){
console.log("a1["+index+"]="+value)
});
console.log("................")
for(var i=1;i<a1.length;i++){
console.log("a1["+i+"]="+a1[i]);
}
console.log("..................")
for(var i in a1){
console.log("a1["+i+"]="+a1[i]);
}
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/smile12/LunBo.git
git@gitee.com:smile12/LunBo.git
smile12
LunBo
轮播
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385