📄 test.jsp
字号:
<html>
<head></head>
<script language="JavaScript">
<!--
function compute(length,width){
var SquarArea;
SquarArea=length*width;
document.write("SquarArea="+SquarArea+"<br>");
with(Math){
foo=PI;
bax=sin(foo);
bay= round(foo);
ff=20;
}
document.write("Math.foo="+foo+"<br>");
document.write("Math.bax="+bax+"<br>");
document.write("Math.ff="+ff+"<br>");
document.write("Math.E="+Math.E+"<br>");
//return true;
}
//-->
</script>
<body>
<p>input length and width,to get square area.
<form name="form1">
<input type="text" name="Len" value="40" size=5 >
<input type="text" name="Width" value="20" size=5 >
<INPUT type="button" name="button1" value="Calculate"
onClick="compute(form1.Len.value,form1.Width.value)">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -