摘要: 转为百分号 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 阅读(110) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/whitewolf/archive/2013/04/16/3024843.html 阅读全文
posted @ 2016-02-29 11:23 decsev 阅读(108) 评论(0) 推荐(0) 编辑
摘要: https://github.com/rwaldron/idiomatic.js/tree/master/translations/zh_CN 阅读全文
posted @ 2015-12-01 16:31 decsev 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://icomoon.io/http://www.zhangxinxu.com/wordpress/2012/06/free-icon-font-usage-icomoon/ 阅读全文
posted @ 2015-06-09 16:22 decsev 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(587) 评论(0) 推荐(0) 编辑
摘要: //placeholder兼容性 //如果支持 function isPlaceholer(){ var input = document.createElement('input'); ... 阅读全文
posted @ 2015-03-24 11:59 decsev 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(196) 评论(0) 推荐(0) 编辑
摘要: escape, encodeURI, encodeURIComponent 的使用情况:1、js使用数据时可以使用escape;2、传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断;3、进行url跳转时可以整体使用encodeURI。例如: Locat... 阅读全文
posted @ 2015-03-04 11:11 decsev 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 文件: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 阅读(478) 评论(0) 推荐(0) 编辑