- 博客(0)
- 资源 (5)
空空如也
JavaScript 参考教程
JavaScript 参考教程
JavaScript 简介
JavaScript 有什么特点
Java 与 JavaScript 有什么不同
JavaScript 基本语法
2009-08-20
总结常用JavaScript语法107条
1.输出语句:document.write("")
2.JS中的注释为://
3.传统的HTML文档顺序是:document->html->(head,body)
4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)
5.得到表单中元素的名称和值:document.getElementById("表单中元素的ID号").name(或value)
6.一个小写转大写的JS:
document.getElementById("output").value = document.getElementById("input").value.toUpperCase();
7.JS中的值类型:String,Number,Boolean,Null,Object,Function
8.JS中的字符型转换成数值型: parseInt(),parseFloat()
2009-08-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人