JS常用代码收集
摘要:1.document.write()不换行的输出,document.writeln()换行输出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( &q
阅读全文
posted @ 2013-02-18 10:34

浙公网安备 33010602011771号