瞅我干啥?

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2016年8月22日

摘要: 函数的扩展 函数参数的默认值 函数参数的默认值 基本用法 基本用法 在ES6之前,不能直接为函数的参数指定默认值,只能采用变通的方法。 function log(x, y) { y = y || 'World'; console.log(x, y); } log('Hello') // Hello 阅读全文
posted @ 2016-08-22 22:08 瞅我干啥? 阅读(498) 评论(0) 推荐(0) 编辑

摘要: 正则的扩展 RegExp构造函数 RegExp构造函数 在ES5中,RegExp构造函数的参数有两种情况。 第一种情况是,参数是字符串,这时第二个参数表示正则表达式的修饰符(flag)。 var regex = new RegExp('xyz', 'i'); // 等价于 var regex = / 阅读全文
posted @ 2016-08-22 22:04 瞅我干啥? 阅读(257) 评论(0) 推荐(0) 编辑

2016年8月18日

摘要: 1 function getByClass(oParent,sClass){ 2 if(oParent.getElementsByClassName){ 3 return oParent.getElementsByClassName(sClass); 4 }else{ 5 var arr=[]; 6 var aEle=o... 阅读全文
posted @ 2016-08-18 22:36 瞅我干啥? 阅读(250) 评论(0) 推荐(0) 编辑

2016年8月17日

摘要: 1 2 3 4 5 6 19 54 55 56 57 58 59 60 61 阅读全文
posted @ 2016-08-17 23:43 瞅我干啥? 阅读(144) 评论(0) 推荐(0) 编辑

2016年8月16日

摘要: 1 2 3 4 5 6 25 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 阅读全文
posted @ 2016-08-16 23:01 瞅我干啥? 阅读(212) 评论(0) 推荐(0) 编辑

摘要: li { position: absolute; list-style: none; } #pic1 { top: 210px; left: 550px; } #pic2 { top: 290px; left: 430px; } #pic3 { top: 215px; left: 220px; } 阅读全文
posted @ 2016-08-16 22:59 瞅我干啥? 阅读(202) 评论(0) 推荐(0) 编辑

2016年8月15日

摘要: 1 2 3 4 5 6 45 163 164 165 166 167 张茜 168 大飞 169 尊尊 170 赵帅 171 魁哥 172 大汉 173 174 175 176 阅读全文
posted @ 2016-08-15 23:02 瞅我干啥? 阅读(134) 评论(0) 推荐(0) 编辑

2016年8月13日

摘要: *{padding:0;margin:0;}img{vertical-align:top;border:none;}a{text-decoration:none;}#Left {float:left;margin:150px 0 0 0;background: #FFF;overflow:hidde 阅读全文
posted @ 2016-08-13 19:53 瞅我干啥? 阅读(140) 评论(0) 推荐(0) 编辑

2016年8月12日

摘要: addclass,removeclass,hasclass,toggleclass,getbyclass 阅读全文
posted @ 2016-08-12 21:55 瞅我干啥? 阅读(204) 评论(0) 推荐(0) 编辑