1、 JavaScript保留关键字
|
abstract |
boolean |
break |
byte |
case |
catch |
|
char |
class |
const |
continue |
default |
delete |
|
finally |
float |
fo |
function |
goto |
if |
|
do |
double |
else |
extends |
false |
final |
|
implements |
import |
in |
instanceof |
int |
interface |
|
long |
native |
new |
null |
package |
private |
|
protected |
public |
return |
short |
static |
super |
|
switch |
synchronized |
this |
throw |
throws |
transient |
|
true |
try |
typeof |
var |
void |
volatile |
|
while |
with |
|
|
|
|
2、 JavaScript语句的位置
a) head标签内:显示页面之前执行脚本
b) body标签之间:脚本的某些操作与文档主题有关
3、 完整的字符串必须在相匹配的一对引号中(单/双引号)
4、 write和writeln一般作用相同,但是在pre标签中,writeln会输出换行
5、 noscript标签能让启用JavaScript的浏览器识别,让没有启用的浏览器显示其中的内容
1695

被折叠的 条评论
为什么被折叠?



