<!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>
我用sublime text 編的,可以幫我看下那里錯(cuò)了嗎,按鈕2不開(kāi)
幕布斯6906120
2016-01-25 12:07:46