📄 9-17.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<script language="javascript">
var n = new Number(Math.PI);
var n10 = 10000*n;
var int5 = 5;
document.write("<pre>");
document.writeln(n);
document.writeln(n.toFixed(2));
document.writeln(n.toFixed(6));
document.writeln(n10);
document.writeln(n10.toExponential());
document.writeln(n10.toExponential(4));
document.writeln(n10.toLocaleString());
document.writeln(n10.toPrecision(2));
document.writeln(n10.toPrecision(5));
document.writeln(n10.toPrecision(8));
document.writeln(int5.toPrecision(5));
document.write("</pre>");
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -