Math.floor(129/10);aa=document.all.tt.value
bb=Number(aa)+120

解决方案 »

  1.   

    一,parseInt(129/10)
    二,我觉的你写的没问题,不会报错
      

  2.   


    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>test</title>
    </head>
    <script language="JavaScript">
    function show()
    { form1.aa.value=Math.floor(129/10);
    aa=form1.aa.value;
    form1.bb.value=Number(aa)+120;
    }
    </script>
    <body>
    <form name="form1" method="post" action="">
      <input name="aa" type="text" id="aa">
      <input name="bb" type="text" id="bb">
      <input type="button" name="Submit" value="按钮" onClick="show()">
    </form>
    </body>
    </html>
      

  3.   

    bb=aa*1+120;
     这一招,真强啊¥¥¥¥
    Math.floor(129/10);aa=document.all.tt.value
    bb=Number(aa)+120谢谢,可以
    ¥¥¥¥
    parseInt(129/10)
    兄弟,你用JSP的吧,幸会