<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
$(this).attr('disabled',"true");
});
});
</script>
</head>
<body>
<button type="button">Click me</button>
<button type="button">Click me</button>
<button type="button">Click me</button>
</body>
</html>
轉載于:https://www.cnblogs.com/gerry/p/8671734.html