摘要: 代码 样式文件style.css 看官赏点饭钱可好? 阅读全文
posted @ 2016-03-22 14:10 疯子110 阅读(754) 评论(0) 推荐(0) 编辑
摘要: /** * param Date Object:Mon May 11 13:53:08 UTC+0800 2015 * n 自param 起向后多少天 * return Date Object:Mon May 11 13:53:08 UTC+0800 2015 */ function getDate 阅读全文
posted @ 2016-03-22 14:01 疯子110 阅读(566) 评论(0) 推荐(0) 编辑
摘要: SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); //获取前月的第一天 Calendar cal_1=Calendar.getInstance();//获取当前日期 cal_1.add(Calendar.MONTH, -1); 阅读全文
posted @ 2016-03-22 13:57 疯子110 阅读(9232) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <script type="text/javascript" src="jquery-1.8.1.min.js" 阅读全文
posted @ 2016-03-22 13:53 疯子110 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 正则表达式匹配IP 阅读全文
posted @ 2016-03-22 13:48 疯子110 阅读(1177) 评论(0) 推荐(0) 编辑
摘要: 看官赏点饭钱可好? 阅读全文
posted @ 2016-03-22 13:45 疯子110 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 为了让table具有更好的可读性,我们可以将表格的header信息克隆一份到表格的底部,这种特效通过JQuery就很容易实现: 阅读全文
posted @ 2016-03-22 13:43 疯子110 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 1、根据url来加载图片: 2、定义callback函数: 3、调用上面的方法,代码如下: 阅读全文
posted @ 2016-03-22 13:42 疯子110 阅读(532) 评论(0) 推荐(0) 编辑
摘要: var MD5 = function (string) { function RotateLeft(lValue, iShiftBits) { return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits)); } function AddUnsign 阅读全文
posted @ 2016-03-22 13:40 疯子110 阅读(244) 评论(0) 推荐(0) 编辑
摘要: <script> function AuthPasswd(string) { if(string.length >=6) { if(/[a-zA-Z]+/.test(string) && /[0-9]+/.test(string) && /\W+\D+/.test(string)) { notice 阅读全文
posted @ 2016-03-22 13:40 疯子110 阅读(1467) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" c 阅读全文
posted @ 2016-03-22 13:39 疯子110 阅读(2764) 评论(0) 推荐(0) 编辑
摘要: /* 往指定时间字符串上加时间间隔,获得新的时间字符串 * startDateStr:开始时间字符串,类似"2015-7-20 17:26:00" * durationNumStr:持续时间数 * durationTypeStr:持续时间类型 * 返回类似:2015-7-20 17:26:00 * * */ function getEndDate(start... 阅读全文
posted @ 2016-03-22 11:33 疯子110 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: 通过AJAX异步减少网络内容传输,而JSON则可以把传输内容缩减到纯数据;然后利用jQuery内置的AJAX功能直接获得JSON格式的数据;在客户端直接绑定到数据控件里面,从而达到最优。 阅读全文
posted @ 2016-03-22 11:31 疯子110 阅读(304) 评论(0) 推荐(0) 编辑
摘要: ${item.note} //自动计算长度,并剔除html元素 $(".tits").each(function(i) { var leg = 280; $(this).html($(this).text()); var copyThis = $(this.cloneNode(true)).hide().c... 阅读全文
posted @ 2016-03-22 11:29 疯子110 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: 收集的35个 jQuery 小技巧/代码片段,可以帮你快速开发. 1. 禁止右键点击 2. 隐藏搜索文本框文字 3. 在新窗口中打开链接 4. 检测浏览器 注: 在版本jQuery 1.4中,$.support 替换掉了$.browser 变量 5. 预加载图片 This piece of code 阅读全文
posted @ 2016-03-22 11:27 疯子110 阅读(209) 评论(0) 推荐(0) 编辑
摘要: <无详细内容> 阅读全文
posted @ 2016-03-22 11:24 疯子110 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 项目中用到的,用JavaScript将数字转换为大写金额,分享出来给大家 阅读全文
posted @ 2016-03-22 11:23 疯子110 阅读(358) 评论(0) 推荐(0) 编辑
摘要: validata.js card.js validata.js card.js 阅读全文
posted @ 2016-03-22 11:22 疯子110 阅读(621) 评论(0) 推荐(0) 编辑
摘要: function isWeiXin(){ var ua = window.navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == 'micromessenger'){ return true; }else{ retur 阅读全文
posted @ 2016-03-22 11:18 疯子110 阅读(537) 评论(0) 推荐(0) 编辑
摘要: java中处理2个时间段相差几天很容易,直接调相关方法就行,不过js处理这类问题稍微有点不易,项目开发中也用到了,如下: 直接调用此函数,传日期参数就行,如传“2014年7月12日”或者“2014-07-12”,直接返回与当前日期相差的天数,如果传入日期为当前日期之前,那么返回负的,如-2,就代表差 阅读全文
posted @ 2016-03-22 11:17 疯子110 阅读(9134) 评论(0) 推荐(0) 编辑