摘要: eg ://扩展strWith方法String.prototype.startWith =function(str) {if(str ==null|| str ==""||this.length ==0|| str.length >this.length)returnfalse;if(this.su... 阅读全文
posted @ 2014-04-18 15:19 lichunlin 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 父页面获取Iframe子页的元素JS版:document.getElementById("IframeID").contentWindow.document.getElementById("divID")JQ版1:$("#divID",$("#iframeID")[0].contentWindow.... 阅读全文
posted @ 2014-04-18 15:18 lichunlin 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: js中的execCommand()方法突然发现这个方法的妙处。。。搜了点资料,,忘记下转载自哪了。。。2009年09月27日 星期日 15:49document.execCommand()方法处理html数据时常用语法格式如下:代码:document.execCommand(sCommand[,交互... 阅读全文
posted @ 2014-04-18 15:17 lichunlin 阅读(10272) 评论(0) 推荐(0) 编辑
摘要: 查看SQL语句在SQL Server上的执行时间,方便大家监控语句的性能。写出更好的代码。1:下面这种是比较简单的查询方法,通过查询前的时间和查询后的时间差来计算的declare @begin_date datetimedeclare @end_date datetimeselect @begin_... 阅读全文
posted @ 2014-04-18 15:17 lichunlin 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Convert(date,getdate(),23) 阅读全文
posted @ 2014-04-18 15:16 lichunlin 阅读(1765) 评论(0) 推荐(0) 编辑
摘要: C#中使用string.Split方法来分割字符串的注意事项:string.Split给我们提供了非常灵活的使用方式,但是如果使用不当,会造成错误,最近在做code review时,看到大部分人这么使用:strings="A|B|:|C:D";string[]ss=s.Split("|:|".ToC... 阅读全文
posted @ 2014-04-18 15:15 lichunlin 阅读(3425) 评论(0) 推荐(0) 编辑
摘要: 1.datatable.compute("max(列名)","")2.Column.Expression = "max(数据列名)";3.用视图来排序 Dim firstView As DataView Dim maxvalue as stringfirstView = dt.DefaultView... 阅读全文
posted @ 2014-04-18 15:14 lichunlin 阅读(2121) 评论(0) 推荐(1) 编辑
春霖