添加:js测试 弹窗按钮

This commit is contained in:
2025-03-05 11:05:37 +08:00
parent 840ed10d06
commit c3d46c329b
3 changed files with 30 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
alert('测试');
document.addEventListener("DOMContentLoaded", function () {
const button = document.getElementById("click_button");
button.addEventListener("click", function () {
alert("你还真按啊");
});
});