js9.html

来自「js的源码 初学js的一些小例子」· HTML 代码 · 共 23 行

HTML
23
字号
<html>

<script language="javascript">
document.write(eval("5+5"));
document.write("<br>"+isNaN("a"));
document.write("<br>"+isNaN("1"));

function hello(){
  document.write("<br>Hello!!!");
  document.write("<br>"+sum(10,10));
}

function sum(a,b){
  return a+b;
}

</script>

<body onload="hello()">

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?