新的一天

This commit is contained in:
syx_computer
2025-10-15 17:48:32 +08:00
parent 61ec7c9468
commit 8150aa63d1
8 changed files with 239 additions and 231 deletions

View File

@@ -1,10 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS-DOM</title>
</head>
<body>
<h1 id="title1">11111</h1>
@@ -12,7 +14,11 @@
<h1>33333</h1>
<script>
// let h1 = document.querySelector('#title1');
// let h1 = document.querySelector('h1');
let h1 = document.querySelectorAll('h1');
h1[1].innerHTML = '44444';
</script>
</body>
</html>