1 Star 0 Fork 0

mengmenghao / 我的个人网站

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
duixiang.html 334 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
mengmenghao 提交于 2020-04-24 22:37 . 第五次
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script>
let a = 0;
let b = [1, 2, 3, 4, 0];
function f(a, b) {
for (let i = 0; i < b.length; i++) {
if (b[i] === a) {
return i;
}
}
return -1;
}
console.log(f(a, b));
</script>
</body>
</html>
1
https://gitee.com/mengmeng111/website.git
git@gitee.com:mengmeng111/website.git
mengmeng111
website
我的个人网站
master

搜索帮助

14c37bed 8189591 565d56ea 8189591