using System; using System.Collections; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Commons.Collections; using NVelocity; using NVelocity.App; using NVelocity.Conte
添加如下擴充:$.fn.outerHTML = function() { $this = $(this); var h = $this.html(); var s = $this.wrap("<div></div>").parent().html(); $this.empty().html(h); return s;};然後就可以直接使用outerHTML()方法了。另外需要注意的是。如果擷取的對象是數組。需要如下處理:var content
We Never Told Him He Couldn't Do It My son Joey was born with club feet. The doctors assured us that with treatment he would be able to walk normally - but would never run very well. The first three years of his life were spent in
using System;using System.Net;using System.Collections.Generic;using System.IO;using System.Xml;namespace CiCeng{public class CiCengjson{public object XmlToJson(){var xml = File.ReadAllText(@"D:\cnblogs.xml");//該xml為部落格園隨筆備份檔案XmlDocument doc = new
記得原來用FOXPRO的時候,為了進行排名要專門寫一個過程,很複雜,還要考慮並列名次,現在只要一條SQL語句就可以搞定: /*排名語句 ---全縣排名 select 姓名,總分, (select count(*)+1 from 成績 where a.總分>成績.總分) as 名次 from 成績 a ---分校排名 select 校名,姓名,總分, (select count(*)+1
什麼是設計原則? 設計原則是基本的工具,應用這些規則可以使你的代碼更加靈活、更容易維護,更容易擴充。基本原則 封裝變化Encapsulate what varies. 面向介面變成而不是實現 Code to an interface rather than to an implementation. 優先使用組合而非繼承 Favor Composition Over InheritanceSRP: The single responsibility principle 單一職責