<script type="text/javascript"> var clap; function Calc() { clap = document.form.clap.value; document.form.clap.value = parseInt(clap) + 1; } </script> <form name="form"> <input type="int" name="clap" value="0"> <input type="button" name="cmdCalc" value="拍手"onclick ="Calc()"> </form>