Step 1:WNDCLASStypedef struct _WNDCLASS{ UINT
style; WNDPROC lpfnWndProc; int cbClsExtra; int cbWndExtra; ...
分类:
编程语言 时间:
2014-05-26 11:02:57
阅读次数:
229
javascript中的replace只会替换第一个匹配如果要全部替换的话只能重写方法实现replaceAll记录一下String.prototype.replaceAll
= function (s1, s2) { return this.replace(new RegExp(s1,"gm"),s...
分类:
编程语言 时间:
2014-05-26 10:49:03
阅读次数:
326
Function对象对象中的函数(方法)当一个函数被保存为对象的一个属性时,我们称它为一个方法,当一个方法被调用时,this被绑定到该对象。方法可以使用this访问自己所属的对象;return一个函数纵使会返回一个值。如果没有指定返回值,则返回
undefined。如果函数调用时在前面加上了 new...
分类:
Web程序 时间:
2014-05-26 10:23:51
阅读次数:
203
Given an array S of n integers, find three
integers in S such that the sum is closest to a given number, target. Return the
sum of the three integers....
分类:
其他好文 时间:
2014-05-26 09:58:20
阅读次数:
220
publicstaticvoidForEach(thisIEnumerableenumerableSource,ActiondoCallBack){if(enumerableSource==null||doCallBack==null)return;foreach(variteminenumera....
分类:
其他好文 时间:
2014-05-26 09:39:10
阅读次数:
159
用focus设置输入光标的时候,默认情况下,在IE,谷歌浏览器,苹果(safari)浏览器下是在输入框的最前面,在火狐,opera下是在输入框的文字最后面。如果想自己设置,下面有两个jquery的扩展,可供参考。$.fn.focusEnd=function(){
return this.each(f...
分类:
其他好文 时间:
2014-05-26 09:29:06
阅读次数:
219
* 全角转半角的 转换函数* @return String*/public static final
String full2HalfChange(String QJstr){StringBuffer outStrBuf = new
StringBuffer("");String Tstr = ""...
分类:
编程语言 时间:
2014-05-26 09:10:31
阅读次数:
316
Given a linked list, remove the nth node from
the end of list and return its head. For example, Given linked list:
1->2->3->4->5, and n = 2. After rem...
分类:
其他好文 时间:
2014-05-26 09:08:23
阅读次数:
262
//一般处理,无参数示例public JsonResult Test(){ Something...
return Json{new{Success=true,Msg="Error!",...}}; //return
Json(new{Success=fals,Msg="ok",...},Js...
分类:
Web程序 时间:
2014-05-26 08:44:39
阅读次数:
326
/// /// 过滤标记/// /// 包括HTML,脚本,数据库关键字,特殊字符的源码 ///
已经去除标记后的文字public static string NoHTML(string Htmlstring){if (Htmlstring ==
null){return "";}else{//删除...
分类:
数据库 时间:
2014-05-26 08:38:42
阅读次数:
345