<!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>
<input type="text" name="content">
<select name="" id="">
<option value="+"> + </option>
<option value="-">-</option>
<option value="×">×</option>
<option value="÷">÷</option>
</select>
<input type="text" name="content">
<button>=</button>
<span>运算结果为:0</span>
</body>
<script>
// 1.获
JS案例----简易版计算器
最新推荐文章于 2024-03-19 04:00:12 发布