📄 write.html
字号:
<html>
<head>
<title></title>
</head>
<body>
<script>
var new_win = window.open("");
function do_somethingA()
{
return Math.sin(3);
}
var a = do_somethingA();
new_win.document.write("sin(3):" + a + "<br>");
function do_somethingB()
{
return Math.sin(9);
}
var b = do_somethingB();
new_win.document.write("sin(9):" + b + "<br>");
function do_somethingC()
{
return Math.sin(12);
}
var c = do_somethingC();
new_win.document.write("sin(12):" + c + "<br>");
function do_somethingD()
{
return Math.sin(15);
}
var d = do_somethingD();
new_win.document.write("sin(15):" + d + "<br>");
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -