生成500个0-1000的随机数&&数组查找—小练习
2024-10-08 01:07:28
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
window.onload = function ()
{
var obody = document.getElementsByTagName('body')[0];
for (var i = 0; i < 550; i++)
{ obody.innerHTML += Math.round(Math.random()*1000)+ ' '; }
}
</script>
<title>无标题文档</title>
</head> <body>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script type="text/javascript">
window.onload = function ()
{
var arr = [1,2,3,4,5,6,7,8,9];
var num = 3;
alert(arr.join('').indexOf(num));
};
</script>
</head> <body>
</body>
</html>
最新文章
- H264与RTP
- Secretary Problem
- Linux命令--top使用技巧
- Android服务之Service
- SpringDataMongoDB介绍(一)-入门
- process thread Fiber(linux)
- Linux DNS 设置失败
- SQLite 入门教程(一)基本控制台(终端)命令 (转)
- Android获取设备隐私 忽略6.0权限管理
- POJ 1995 Raising Modulo Numbers
- 每天一个linux命令30)--chgrp命令
- 在昆明网络SEO的走向站外的优化该何去何从?
- 存在Settings数据在手机系统中的位置
- css 清除浮动的几种方式
- Echarts整合spring boot进行开发
- 入门项目 A3 src 主代码
- application/json和application/x-www-form-urlencoded使用选择
- 【Selenium】【BugList4】执行pip报错:Fatal error in launcher: Unable to create process using &#39;";";D:\Program Files\Python36\python.exe";"; ";D:\Program Files\Python36\Scripts\pip.exe"; &#39;
- Spring boot 配置文件参数映射到配置类属性
- 通过spring抽象路由数据源+MyBatis拦截器实现数据库自动读写分离
热门文章
- spring.net异常处理
- C# 时间戳和时间的相互转换
- 安卓发展史以及安卓和苹果对比PPT
- excel表格公式出现#REF是什么意思
- .NET Framework 4.5 五个很棒的特性
- 图片缓存之内存缓存技术LruCache,软引用
- mysql中sql语句执行时间
- staging server, source congtrol, deply workflow using git
- HDU 1548 (最基础的BFS了) A strange lift
- KVC&;KVO&;NSNotification