- <input id="button1" value="Say" type="button" /> 网页元素里什么也没有
- <script> var input1=document.getElementById("but"+"ton1") function sayhello(){ alert("hello!") } input1.onclick=sayhello //事件句柄在代码里加 </script>
页面JS 分离
最新推荐文章于 2023-10-07 09:11:09 发布

被折叠的 条评论
为什么被折叠?