没看明白
<script language="javascript">
function clickEvent()
{
document.form1.aa.value=document.form1.bb.value+document.form1.cc.value;
}
</script>??

解决方案 »

  1.   

    <script language="javascript">
    function dec()
    {
    document.form1.aa.value=document.form1.aa.value-document.form1.bb.value;
    }function add()
    {
    var aa=document.form1.aa.value;
    var cc=document.form1.cc.value;
    document.form1.aa.value=parseInt(aa,0)+parseInt(cc,0);
    }
    </script><form name=form1>
    <input type=text name=aa value=0>合计<br><br>
    <input type=text name=bb>
    <input type=button onclick="javascript:dec();" value="减少"><br>
    <input type=text name=cc>
    <input type=button onclick="javascript:add();" value="增加">
    </form>