<html>
<head></head>
<body >
<button type="button" id="testButton" οnclick="click()" >click me!
</button>
</body>
<script type="text/javascript">
function click(){
alert(1);
}</script>
</html>
这段代码不能运行,调试了我好久 ! 发现onclick事件函数写"click()"就是不行呀!换个方法名就好了 有没有!坑爹呀