摘要:
函数的扩展 函数参数的默认值 函数参数的默认值 基本用法 基本用法 在ES6之前,不能直接为函数的参数指定默认值,只能采用变通的方法。 function log(x, y) { y = y || 'World'; console.log(x, y); } log('Hello') // Hello 阅读全文
摘要:
正则的扩展 RegExp构造函数 RegExp构造函数 在ES5中,RegExp构造函数的参数有两种情况。 第一种情况是,参数是字符串,这时第二个参数表示正则表达式的修饰符(flag)。 var regex = new RegExp('xyz', 'i'); // 等价于 var regex = / 阅读全文
摘要:
1 function getByClass(oParent,sClass){ 2 if(oParent.getElementsByClassName){ 3 return oParent.getElementsByClassName(sClass); 4 }else{ 5 var arr=[]; 6 var aEle=o... 阅读全文
摘要:
1 2 3 4 5 6 19 54 55 56 57 58 59 60 61 阅读全文
摘要:
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 阅读全文
摘要:
li { position: absolute; list-style: none; } #pic1 { top: 210px; left: 550px; } #pic2 { top: 290px; left: 430px; } #pic3 { top: 215px; left: 220px; } 阅读全文
摘要:
1 2 3 4 5 6 45 163 164 165 166 167 张茜 168 大飞 169 尊尊 170 赵帅 171 魁哥 172 大汉 173 174 175 176 阅读全文
摘要:
*{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 阅读全文
摘要:
addclass,removeclass,hasclass,toggleclass,getbyclass 阅读全文