
javascript
chuifr
这个作者很懒,什么都没留下…
展开
-
107条Javascript的常用语句
1. document.write( " "); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document- >html- >(head,body)4.一个浏览器窗口中的DOM顺序是:window- >(navigator,screen,history,location,document)5.得到表单中元素的名称和值:document.getElementById( "表单中元转载 2012-05-04 10:22:39 · 344 阅读 · 0 评论 -
js判断变量类型 有2种方法
js判断变量类型 有2种方法 js判断变量类型 有2种方法 1.使用typeof 2.使用Variables.Constructor Example: function fun(msg) { //使用typeof判断 if(typeof msg=="st转载 2013-04-11 10:56:53 · 5364 阅读 · 0 评论