2013年9月30日

摘要: TRUNCATE TABLE DateNormgoDECLARE @DateJ INTDECLARE @CurDate DATETIMEDECLARE @StartDate DATETIMEDECLARE @EndDate DATETIMESET @StartDate = '2004-1-1' ---------这里填写起始时间SET @EndDate = '2025-1-1' ---------这里填写结束时间 --SELECT DATEDIFF(day, @StartDate, @EndDate) into @DateJ SET @CurDate = @St 阅读全文
posted @ 2013-09-30 10:37 都是脚本惹的祸 阅读(243) 评论(0) 推荐(0) 编辑

2013年9月23日

摘要: function LoginEmail(email) { var emailType = new Array(new Array("@163.com", "http://mail.163.com/"), new Array("@126.com", "http://www.126.com/"), new Array("@qq.com", "http://mail.qq.com/cgi-bin/loginpage"), new Array("@vip.qq.com&qu 阅读全文
posted @ 2013-09-23 16:56 都是脚本惹的祸 阅读(877) 评论(0) 推荐(1) 编辑

2013年9月17日

摘要: http://www.drewgreenwell.com/ 阅读全文
posted @ 2013-09-17 11:04 都是脚本惹的祸 阅读(111) 评论(0) 推荐(0) 编辑

2013年9月11日

摘要: window.location.href=window.location.href; 阅读全文
posted @ 2013-09-11 17:29 都是脚本惹的祸 阅读(833) 评论(0) 推荐(0) 编辑

2013年9月2日

摘要: http://www.w3cfuns.com/blog-5420562-5396452.htmldiv{display: block;width:200px;/*对宽度的定义,根据情况修改*/overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}这段代码我想有经验的都知道,但是随后问题来了,我在chrome里效果实现了,而在ie里却没能实现,完全没效果,一开始以为是text-overflow: ellipsis;这个属性兼容性问题,但通过一顿谷歌后所有的文章都基本上是这么实现“……”这个的,然后我在ie里查找原因,之后我发现 阅读全文
posted @ 2013-09-02 14:59 都是脚本惹的祸 阅读(472) 评论(0) 推荐(0) 编辑
摘要: http://gdc.qq.com/?p=2278 阅读全文
posted @ 2013-09-02 14:56 都是脚本惹的祸 阅读(247) 评论(0) 推荐(0) 编辑

2013年8月29日

摘要: F12调试时被断点终止处理:将Sources下面的异常捕捉禁用,使用了jquery等比较复杂的js库,出现这问题比较正常,所以禁用也无妨 阅读全文
posted @ 2013-08-29 18:10 都是脚本惹的祸 阅读(1010) 评论(0) 推荐(0) 编辑

2013年8月21日

摘要: 自动播放的JavaScript幻灯片效果 1 2 3 4 5 阅读全文
posted @ 2013-08-21 11:43 都是脚本惹的祸 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1. 在 String.prototype.replace 方法中使用 /g 和 /i标志位令很多 JavaScript 初学者意外的是,字符串的 replace 方法并不会替换所有匹配的子串——而仅仅替换第一次匹配。当然 JavaScript 老手们都知道这里可以使用正则表达式,并且需要加上一个全局标志位(/g):// Mistake// 踩到坑了var str = "David is an Arsenal fan, which means David is great";str.replace("David", "Darren") 阅读全文
posted @ 2013-08-21 11:23 都是脚本惹的祸 阅读(156) 评论(0) 推荐(0) 编辑

2013年7月30日

摘要: ALTER function [dbo].[fn_Getpinyin](@words nvarchar(2000)) returns varchar(8000) as begin declare @word nchar(1) declare @pinyin varchar(8000) declare @i int declare @words_len int declare @unicode int set @i = 1 set @words = ltrim(rtrim(@words)) set @words_len = len(@words) while (@i = @wo... 阅读全文
posted @ 2013-07-30 15:55 都是脚本惹的祸 阅读(370) 评论(0) 推荐(0) 编辑

导航