摘要: 1.获取元素后访问标签名 1 2 3 4 element 5 6 7 8 13 14 阅读全文
posted @ 2014-08-06 11:12 zasqw2222 阅读(173) 评论(0) 推荐(0)
摘要: 1.document 是HTMLDocument的一个实例。2.document.documentElement对应html、document.body对应body。3.document.title 取得和设置网页标签的文字。4.document.URL 获取浏览器地址栏的内容。5.document... 阅读全文
posted @ 2014-08-06 11:05 zasqw2222 阅读(287) 评论(0) 推荐(0)
摘要: 1 //数组判断 2 在相同环境下(上下文?)使用instanceof来判断是否是数组 3 在不同情况下,使用Array.isArray( arr )来判断是否是数组 4 //数组链接 5 join() 使用参数把数组的每一项链接起来,返回字... 阅读全文
posted @ 2014-07-16 10:15 zasqw2222 阅读(130) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 以上是Html1 .box{float:left;width:30%;height: 400px;background:red;margin:5px;}以上是css浮动,3个box会浮动,因为.wrap没有给定宽高,你用firebug指的时候,一般看不到.... 阅读全文
posted @ 2014-05-27 17:17 zasqw2222 阅读(127) 评论(0) 推荐(0)
摘要: 1.基础的数据类型 string,number,undefined,NULL,boolean.2.复杂的数据类型 Object3.undefined和NULL的本人理解 undefined是声明了的变量,但是没有赋值 NULL连声明都没有,具体说是空指针对象,这就是为什么用typeof的时候... 阅读全文
posted @ 2014-05-23 00:02 zasqw2222 阅读(149) 评论(0) 推荐(0)