如何使该功能每个按钮只运行一次?
如果点击“点击我”只工作一次,其他按钮也一样为了不放太多代码,我举了一个例子..:http:
//jsbin.com/apexod/1/watch
<html>
<head>
<title></title>
</head>
<body>
<input type="button" value="click me" onclick="hello()"><br>
<input type="button" value="click me1" onclick="hello()"><br>
<input type="button" value="click me2" onclick="hello()">
<script>
function hello(){
alert("hello");
}
</script>
</body>
</html>