摘要:
好处:不需要继承,对现有类型进行扩展 public static class ExtString { public static string myTest(this String str) { return "[" + str + "]"; } public static DataRow Expe 阅读全文
摘要:
好处:不需要继承,对现有类型进行扩展 public static class ExtString { public static string myTest(this String str) { return "[" + str + "]"; } public static DataRow Expe 阅读全文
摘要:
#region List <=> DataTable 互相转换 /// <summary> /// LINQ返回DataTable类型 /// </summary> /// <typeparam name="T"> </typeparam> /// <param name="varlist"> </ 阅读全文
摘要:
做手机Web开发做浏览器兼容用到了,所以在网上找了些汇总下。 alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height()) 阅读全文
摘要:
/// <summary> /// 下面通过一个方法来实现返回DataTable类型 /// LINQ返回DataTable类型 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="varlist"></param 阅读全文
摘要:
第一个: 1:空格表示所有 2:> 第一层 3:+/~ 同级 +:之后的第一个元素 ~:之后所有同级 d 代码示例: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1 阅读全文
摘要:
1:在数组指定位置插入元素 array.splice(2, 0, "three"); //在索引2的位置,删除0个元素后,插入元素“three” 例子: 2:join 3:concat 阅读全文
摘要:
1:Jquery对象选择查找 var group = $(".classeslist li"); class 为 classeslist 内部 的所有 li 元素对象 遍历: for (var index in group.toArray()) { if ($(group[index]).hasCl 阅读全文
摘要:
方式1:使用客户端自带的组件 安装客户端以后,添加引用:SAPFunctionsOCX(.net 的Com列表里一般找不到,需要引用DLL【一般位于以下路径:Program Files\SAP\FrontEnd\SAPgui\wdtfuncs.ocx】),SAPLogonCtrl,SAPTableF 阅读全文
摘要:
public static System.Data.DataTable LinqToDataTable<T>(IEnumerable<T> data) { var dt = new System.Data.DataTable(); var ps = typeof(T).GetProperties() 阅读全文
摘要:
EXCEPT :返回两个结果集的差(即从左查询中返回右查询没有找到的所有非重复值)。 INTERSECT :返回 两个结果集的交集(即两个查询都返回的所有非重复值)。 UNION :返回两个结果集的并集。 代码例子:(SELECT * FROM TableA) EXCEPT (SELECT * FR 阅读全文
|