会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
闫森
博客园
首页
新随笔
联系
管理
订阅
1
2
下一页
[置顶]
优秀的react框架的开源ui库 -- Pile.js
摘要: Pile.js是滴滴出行企业级前端组开发的一套基于 react 的移动端组件库,Pile.js组件库在滴滴企业级产品中极大提高了开发效率,也希望我们的产出能给广大前端开发者带来便捷。 特性 质量可靠由滴滴企业级业务精简提炼而来,经历了一年多的考验,提供质量保障 标准规范代码规范严格按照eslint
阅读全文
posted @ 2018-05-24 15:59 闫森
阅读(544)
评论(0)
推荐(0)
2013年2月25日
js 定时刷新页面
摘要: <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 闫森
阅读(206)
评论(0)
推荐(0)
2012年9月18日
CSS3最新特性先记下来
摘要: 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 闫森
阅读(211)
评论(0)
推荐(0)
2012年9月5日
支持按回车键提交的搜索功能
摘要: <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 闫森
阅读(616)
评论(0)
推荐(0)
2012年6月27日
鼠标放在一个容器上时改变鼠标的模样
摘要: <div class="aa"></div>.aa{cursor:url("http://mat1.gtimg.com/news/2009hd/arr_right.cur"), auto;}后缀名必须是.cur的
阅读全文
posted @ 2012-06-27 17:19 闫森
阅读(140)
评论(0)
推荐(0)
为页卡添加锚点的JS,输入页卡对应锚点的链接就会打开相对应的页卡
摘要: <!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 闫森
阅读(525)
评论(0)
推荐(0)
解决IPAD下 数字会被当成电话号码加上链接的问题
摘要: 问题:<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 闫森
阅读(248)
评论(0)
推荐(0)
2012年4月26日
JS判定按键按键
摘要: //按键判定;<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 闫森
阅读(282)
评论(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 闫森
阅读(162)
评论(0)
推荐(0)
IE6 模仿fixed;
摘要: 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 闫森
阅读(128)
评论(0)
推荐(0)
1
2
下一页
公告