//js代码 let btn = document.getElementById("btn1"); btn.onclick = function (){ alert("hello world 123"); }