<!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> <style> div { margin: 100px auto; width: 900px; } </style> <body> <div> 全选 <input type="checkbox" id="i"><br> <div class="in"> 1 <input type="checkbox" > 2 <input type="checkbox"> 3 <input type="checkbox"> 4 <input type="checkbox"> </div> </div> </body> <script> var ip = document.getElementById
js 操作 所有按钮选中时 全选按钮被选中
最新推荐文章于 2023-06-28 17:35:49 发布