1.document.write(""); 输出语句
2.js中的注释为//
3.传统的html文档顺序是:document->html->(head,body)
4.一个浏览器窗口中的dom顺序是:window->(navigator,screen,history,location,document)
5.得到表单中元素的名称和值:document.getelementbyid("表单中元素的id号").name(或&#118alue)
6.一个小写转大写的&#106s: document.getelementbyid("output").&#118alue = document.getelementbyid("input").&#118alue.touppercase();
7.js中的值类型:string,number,boolean,null,object,function
8.js中的字符型转换成数值型:parseint(),parsefloat()
9.js。。。
查看更多 论坛方式查看
时间:2008-7-8 1:07:29 | 浏览次数:68 |
发表评论(0)