1. utf-8编码。
2. 大小写敏感。
3. 忽略空格;
4. 如果每行语句结束没有分号,javascript会自动添加。不过,应该养成语句结束使用分号的习惯。
5. 注释格式有两种,行内注释//和多行注释/* ...*/
6. 直接量(Literals):数字、字符串等。
7. 标示符(Identifiers):以字母、下划线或美元符号开头。
8. 保留字(Reserved Words)。
阮一峰的IT笔记:首页 -> 分类 -> Javascript 查看所有文章:按分类 | 按月份
1. utf-8编码。
2. 大小写敏感。
3. 忽略空格;
4. 如果每行语句结束没有分号,javascript会自动添加。不过,应该养成语句结束使用分号的习惯。
5. 注释格式有两种,行内注释//和多行注释/* ...*/
6. 直接量(Literals):数字、字符串等。
7. 标示符(Identifiers):以字母、下划线或美元符号开头。
8. 保留字(Reserved Words)。
« Conditional Comments in Internet Explorer | 首页 | 测试 Web 应用程序是否存在跨站点脚本漏洞 »
This page contains a single entry from the blog posted on 2006年12月27日 22:31.
The previous post in this blog was Conditional Comments in Internet Explorer.
The next post in this blog is 测试 Web 应用程序是否存在跨站点脚本漏洞.
Many more can be found on the main index page or by looking through the archives.