<input type="button" value="改变颜色" onclick="changecolor()"> 每个按钮下面需要加点击属性。
想输出值的要这么写 var mychar=document.getElementById("con").innerHTML;
2014-11-20