<!doctype html><html><head><meta charset="UTF-8"><title>Document</title></head><body><input type="button" value="按钮" id="btn" onclick="showmassage()"><input type="button" value="按钮2" id="btn2"><script type="text/javascript">function showmassage () {alert('hello world!')} var btn2=Document.getElementById('btn2')btn2.onclick=function(){alert("jjj")}</script></body></html>
添加回答
举报
0/150
提交
取消