标签:
script标签内部书写代码```html <!DOCTYPE html>
``` 2. 通过script标签的src属性,引入外部的JavaScript文件
```html <!DOCTYPE html>
```
在JavaScript中一种有5种原始类型 - 数值类型(number) - 字符串类型(string) - 布尔值类型(boolean) - null - undefined
命名规则: - 第一个字符可以是任意Unicode大小写字母,以及美元符号($)和下划线(_)。 - 第二个字符及后面的字符,还可以用数字。 - 不能使用保留字作为变量名
abstract boolean break byte case catch char class const continue debugger default delete do double else enum exportextends false final finally float for function goto if implements import in instanceof int interface long native newnull package private protected public return short static super switch synchronized this throw throws transient true trytypeof var void volatile while with
example
arg0 _tmp $elem π
1a 23 *** a+b -d var return
标签:
原文地址:http://www.cnblogs.com/cherry325/p/5968078.html