引用位置:
<html>
<head> ... </head>
<body>
<script> source code </script>
</body>
<html>
<script>属性:
type:无用
src:链接外部javascript程序
新语句:
alert("hello world!");
document.bgColor="red";
document.getElementById("id").innerHTML="hello world!";
var enterValue = prompt("enter your age",18); // 18 is default value
document.write("something");
数据:
数据类型、变量(声明、赋值)、数值运算(+、-、*、/、++、--、+=、-=、*=、/=)、字符串操作(+)、数字与字符混用
数据类型转换 continue...
原文:https://www.cnblogs.com/CodeUnknown/p/11273532.html