luckylei66

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年10月13日

摘要: 插件:Masked Input Plugin http://digitalbush.com/projects/masked-input-plugin/ jQuery(function($){ $("#date").mask("99/99/9999"); $(... 阅读全文
posted @ 2012-10-13 16:21 Leo.Wang 阅读(226) 评论(0) 推荐(0) 编辑

2012年9月29日

摘要: .planFinderLink { font-size : 13px ; color : #365cb7 ; text-decoration : underline ; } /* Overlay */ #uplo... 阅读全文
posted @ 2012-09-29 15:27 Leo.Wang 阅读(3103) 评论(0) 推荐(0) 编辑

2012年8月23日

摘要: replace如果替换数据时,默认只替换第一个。 如果在替换的时候加上: / 替换内容 /g 就能实现全部替换 例如:functionchange(strvalue){strvalue=strvalue.replace(/&amp;/g,"&");strvalue=strvalue.replace(/&lt;/g,"<");strvalue=strvalue.replace(/&gt;/g,">");strvalue=strvalue.replace(/&quot;/g," 阅读全文
posted @ 2012-08-23 16:36 Leo.Wang 阅读(886) 评论(0) 推荐(0) 编辑

2012年7月30日

摘要: .NET调用存储过程时,有时候会变的很慢甚至会timeout,但是再执行一下存储过程,再调用就会很快。 解决办法: 1. 在可能比较耗时的语句后面加上option(recompile) 2. 创建存储过程时在其定义中指定 WITH RECOMPILE 选项,表明 SQL Server 将不对该存储... 阅读全文
posted @ 2012-07-30 11:41 Leo.Wang 阅读(3686) 评论(1) 推荐(0) 编辑

2012年7月16日

摘要: 转自:http://www.cnblogs.com/mbailing/archive/2012/07/16/2593368.htmlEF4.1/4.3 的一些使用小技巧 (1)、多表关联查询的写法: var query = (from m in context.Dic_PropertyClass... 阅读全文
posted @ 2012-07-16 22:19 Leo.Wang 阅读(287) 评论(0) 推荐(0) 编辑

2012年7月12日

摘要: DECLARE@Table1TABLE(EntityIDINT,AttributeIDINT,OptionTextVARCHAR(50))INSERTINTO@Table1SELECT5030,48,'M'INSERTINTO@Table1SELECT5030,48,'F'--BeginactualworkingSQLSELECTT1.EntityID,T1.AttributeID,STUFF((SELECT','+T2.OptionTextFROM@Table1T2WHERET2.AttributeID=T1.AttributeIDANDT2. 阅读全文
posted @ 2012-07-12 22:27 Leo.Wang 阅读(162) 评论(0) 推荐(0) 编辑

摘要: 参考: http://api.jquery.com/event.preventDefault/ 参考: http://www.w3school.com.cn/htmldom/event_preventdefault.asp 定义和用法 取消事件的默认动作。 语法 event.preve... 阅读全文
posted @ 2012-07-12 22:05 Leo.Wang 阅读(191) 评论(0) 推荐(0) 编辑

摘要: SimpleModal 插件 http://www.ericmmartin.com/projects/simplemodal/ 以下代码可以避免在IE中使用simpleModal弹出iframe出错问题 varlicense_no='' $(document).ready( funct... 阅读全文
posted @ 2012-07-12 21:59 Leo.Wang 阅读(241) 评论(0) 推荐(0) 编辑

摘要: SELECT DATEADD(yy, DATEDIFF(yy, 0, getdate()), 0) -- 当前年1月1号 SELECT DATEADD(mm, DATEDIFF(mm, 0, getdate()), 0) -- 当前月1号 SELE... 阅读全文
posted @ 2012-07-12 21:35 Leo.Wang 阅读(10481) 评论(0) 推荐(0) 编辑

2012年6月11日

摘要: function reinitIframe(){ var iframe = document.getElementById( " frame_content " ); try { var bHeight = iframe.contentWin... 阅读全文
posted @ 2012-06-11 15:37 Leo.Wang 阅读(175) 评论(0) 推荐(0) 编辑