摘要: Pile.js是滴滴出行企业级前端组开发的一套基于 react 的移动端组件库,Pile.js组件库在滴滴企业级产品中极大提高了开发效率,也希望我们的产出能给广大前端开发者带来便捷。 特性 质量可靠由滴滴企业级业务精简提炼而来,经历了一年多的考验,提供质量保障 标准规范代码规范严格按照eslint 阅读全文
posted @ 2018-05-24 15:59 闫森 阅读(524) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript">function reget(){ var r=parseInt(Math.random()*100); var myurl=window.location.href.split("?"); window.location.href=myurl[0]+"?"+r;} setTimeout(reget,60000)</script> 阅读全文
posted @ 2013-02-25 19:36 闫森 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1: CSS3选择器部分 E[att^="val"] 匹配具有att属性、且值以val开头的E元素 E[att$="val"] 匹配具有att属性、且值以val结尾的E元素 E[att*="val"] 匹配具有att属性、且值中含有val的E元素 E:root 匹配文档的根元素。在HTML中,根元素永远是HTML E:nth-child(n) 匹配父元... 阅读全文
posted @ 2012-09-18 16:49 闫森 阅读(197) 评论(0) 推荐(0) 编辑
摘要: <div class="searchMh"> <a onclick="submitup()" id="searchName" target="_blank" title="" href="##">搜索</a><input type="text" onkeydown="if(event.keyCode==13){submitup()}" value="请输入关键词" x-web 阅读全文
posted @ 2012-09-05 16:15 闫森 阅读(571) 评论(0) 推荐(0) 编辑
摘要: <div class="aa"></div>.aa{cursor:url("http://mat1.gtimg.com/news/2009hd/arr_right.cur"), auto;}后缀名必须是.cur的 阅读全文
posted @ 2012-06-27 17:19 闫森 阅读(130) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML><html lang="zh-cn"><head><meta charset="utf-8" /><meta name="keywords" content="" /><meta name="description" content="" /><title>模板</title><style type="text/css"> 阅读全文
posted @ 2012-06-27 17:16 闫森 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 问题:<div class="text">2012-06-27</div><script type="text/javascript"> var text=document.getElementById("text").innerHTML; alert(text);</script>这时候会输出 <a title="" href="##">2012-06-27</a>原因:数字会被当成电话号码加上链接。解决方案:<me 阅读全文
posted @ 2012-06-27 17:13 闫森 阅读(234) 评论(0) 推荐(0) 编辑
摘要: //按键判定;<script type="text/javascript">function keyValue(myEvent){if (document.all)myEvent=event;version=navigator.appVersion;if (version.indexOf("MSIE")==1){ if(myEvent.which==37){alert("你按下的按键代码值为:向左")};if(myEvent.which==39){alert("你按下的按键代码值为:向右")}}else 阅读全文
posted @ 2012-04-26 19:31 闫森 阅读(269) 评论(0) 推荐(0) 编辑
摘要: function docMax(name){return Math.max(document.documentElement["client" + name],document.documentElement["scroll" + name],document.documentElement["offset" + name],document.body["scroll" + name], document.body["offset" + name], document.body["cl 阅读全文
posted @ 2012-04-26 19:30 闫森 阅读(155) 评论(0) 推荐(0) 编辑
摘要: position:fixed; left:0; bottom:0; z-index:99999;_position:absolute; _top: expression(eval(document.documentElement.scrollTop + (document.documentElement.clientHeight - 38)));opacity:0.7;filter:alpha(opacity=70); 阅读全文
posted @ 2012-04-26 19:29 闫森 阅读(122) 评论(0) 推荐(0) 编辑