会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
decsev
博客园
首页
新随笔
联系
管理
订阅
2017年1月12日
格式化方法
摘要: 转为百分号 var setPercent = function(v){ var num=Number(v); switch(true){ case num>0: num='+'+num+'%'; break; case num<0: num=num+'%'; break; case num==0:
阅读全文
posted @ 2017-01-12 11:02 decsev
阅读(116)
评论(0)
推荐(0)
2016年2月29日
Angularjs Controller 间通信机制
摘要: http://www.cnblogs.com/whitewolf/archive/2013/04/16/3024843.html
阅读全文
posted @ 2016-02-29 11:23 decsev
阅读(112)
评论(0)
推荐(0)
2015年12月1日
js规范
摘要: https://github.com/rwaldron/idiomatic.js/tree/master/translations/zh_CN
阅读全文
posted @ 2015-12-01 16:31 decsev
阅读(108)
评论(0)
推荐(0)
2015年7月30日
js插件收藏&&开发辅助工具
摘要: http://malsup.com/jquery/block ajax加载过程中锁屏mock.js 提供模拟数据http://mockjs.com/jQuery全屏滚动插件fullPage.jshttp://www.dowebok.com/77.htmlDWZ富客户端框架http://www.j-u...
阅读全文
posted @ 2015-07-30 10:56 decsev
阅读(140)
评论(0)
推荐(0)
2015年6月9日
字符图标icomoon
摘要: https://icomoon.io/http://www.zhangxinxu.com/wordpress/2012/06/free-icon-font-usage-icomoon/
阅读全文
posted @ 2015-06-09 16:22 decsev
阅读(234)
评论(0)
推荐(0)
2015年4月2日
tab带url直接访问
摘要: function showTab() { $(".tab-nav li").click(function(){ var self = $(this), target = self.data("tab"); self.addClass("current").sibli...
阅读全文
posted @ 2015-04-02 14:19 decsev
阅读(606)
评论(0)
推荐(0)
2015年3月24日
placeholder兼容
摘要: //placeholder兼容性 //如果支持 function isPlaceholer(){ var input = document.createElement('input'); ...
阅读全文
posted @ 2015-03-24 11:59 decsev
阅读(140)
评论(0)
推荐(0)
2015年3月19日
密码强度正则
摘要: 6位+数字+字母+特殊字符 |6位+数字、字母、特殊字符两两组合 | 6位var threeRegex = new RegExp("^(?=.{6,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*\\W).*$", "g");var twoRegex = new RegExp("^(...
阅读全文
posted @ 2015-03-19 12:15 decsev
阅读(204)
评论(0)
推荐(0)
2015年3月4日
escape, encodeURI, encodeURIComponent 的使用情况
摘要: escape, encodeURI, encodeURIComponent 的使用情况:1、js使用数据时可以使用escape;2、传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断;3、进行url跳转时可以整体使用encodeURI。例如: Locat...
阅读全文
posted @ 2015-03-04 11:11 decsev
阅读(112)
评论(0)
推荐(0)
2015年3月3日
wampserver设置网站文件路径,虚拟域名访问
摘要: 文件:httpd.conf@开启虚拟hosts# Virtual hostsInclude conf/extra/httpd-vhosts.conf文件:httpd-vhosts.conf@配置虚拟主机 DocumentRoot "E:/www/pz" ServerName to.pz....
阅读全文
posted @ 2015-03-03 09:28 decsev
阅读(486)
评论(0)
推荐(0)
下一页
公告