0

我想将参数“Min”发送到“时间”形式的文本框。但我不知道我该怎么做......

<html>
    <script language="javascript">
        tid = 0;
        sumcost=400;
        todaycost=50;
        var Min=(sumcost-todaycost);
        alert(Min);
    </script>

    <form name="time">
        <div align="center">
          <script language="JavaScript">
          document.write('<input style="FONT-WEIGHT: bold; bo ?rder: none; color:#CC0000 ; FONT-SIZE: 14pt; TEXT-ALIGN: center;" name=result size=30 value="Minus1()">');
          </script>
        </div>
    </form>
</html>
4

1 回答 1

0
document.write('<input style="FONT-WEIGHT: bold; bo ?rder: none; color:#CC0000 ; FONT-SIZE: 14pt; TEXT-ALIGN: center;" name=result size=30 value="'+Min+'">');
于 2013-06-23T20:34:01.987 回答