<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<img src="./sai1.png" width=100 height=100 alt="1" id="one">
<img src="./sai2.png" width=100 height=100 alt="1" id="two">
<img src="./sai3.png" width=100 height=100 alt="1" id="three">
<!-- 必须不断的修改src的路径 -->
<!-- sai.png固定 1 2 3 4 5 6 -->
<!-- 随机值 -->
<!-- 三个骰子 需要生成三个随机值 1~6 -->
<!-- 间歇定时器 实现没隔多长时间执行依次 -->
<button onclick="zhuan()">开始</button&g
JS实现摇骰子
于 2022-11-12 15:27:03 首次发布