<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>抽奖</title>
<style>
input{
width: 20px;
height: 20px;
}
[type="button"]{
width: 40px;
height: 20px;
}
</style>
<script>
var showNum;
window.οnlοad=function(){
document.getElementById("start").οnclick=function(){
showNum=setInterval(randomNum,100);
document.getElementById("stop").disabled=false;
this.disabled=true;
}
document.getElementById("stop").οnclick=function(){
document.getElementById("start").disabled=false;
this.disabled=true;
window.clearInterval(showNum);
}
}
html5与JavaScript脚本的六位彩票随机数字算法
最新推荐文章于 2024-05-09 10:50:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)