first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
<!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>事件</title>
</head>
<body>
<button onclick="test()">点我1</button>
<button class="btn2">点我2</button>
</body>
<script>
// var button = {
// tagName: 'button',
// className: 'btn2',
// idName: '',
// onClick: null,
// addEventListener: [ function(){}, function() {} ]
// innerText: '你好',
// children: [
// {
// tagName: 'span',
// className: '',
// idName: '',
// innerText: '点我2',
// }
// ]
// }
// document dom
// var button = document.querySelector(".btn2")
// button.onclick = function () {
// alert("你好1")
// }
// button.onclick = function () {
// alert("你好2")
// }
// button.onclick = function () {
// alert("你好3")
// }
// button.addEventListener("click", function() {
// alert(1)
// })
// button.addEventListener("click", function() {
// alert(2)
// })
// button.innerText = "哈哈哈哈哈"
// button.className = "btnhaahah"
// function test() {
// alert("你好")
// }
</script>
</html>