<!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>
<div>
<input class="ckx" type="checkbox">
<input class="box" type="checkbox">
<input class="box" type="checkbox">
<input class="box" type="checkbox">
<input class="box" type="checkbox">
</div>
<script>
let ckx = document.querySelector('.ckx') // 获取全选复选框
let box =
js全选和单选
于 2023-01-05 11:56:25 首次发布