62,046
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">
function sum()
{
var A=document.getElementById("Text1").value;
var label= document.getElementById("Label1");
var temp=A*1.1;
label.innerText=temp.toFixed(2);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<input id="Text1" type="text" />
<asp:Label ID="Label1" runat="server" Text="Label">
</asp:Label><input id="Button5" type="button" value="button" onclick="sum()" />
</form>
</body>
</html>