--資料較少時,可以手工同步,更方便控制--用觸發器即時同步兩個表的執行個體:--測試環境:SQL2000,遠程主機名稱:xz,使用者名稱:sa,密碼:無,資料庫名:test--建立測試表,不能用識別欄位做主鍵,因為不能進行正常更新--在遠程主機上建表if exists (select * from dbo.sysobjects where id = object_id(N'[test]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop
首先介紹裝箱(Boxing)和拆箱(Unboxing)這兩個名詞。.Net的類型分為兩種,一種是實值型別,另一種是參考型別。這兩個類型的本質區別,實值型別資料是分配在棧中,而參考型別資料分配在堆上。那麼如果要把一個實值型別資料放到堆上,就需要裝箱操作;反之,把一個放在堆上的實值型別資料取出來,則需要進行拆箱操作。例如,對於如下簡單的裝箱和拆箱動作陳述式。 int i = 123; object obj = i;//Boxing if( obj is int )
註:如類有共有的建構函式而且沒有使用Dependency特性,可以在不需要註冊映射關係的前提下,使用容器產生執行個體1、擷取預設映射IMyService result = myContainer.Resolve<IMyService>();2、擷取命名映射IMyService result = myContainer.Resolve<IMyService>("Data");3、擷取註冊的所有對象IEnumerable<IMyObject> objects =
在IE中可以直接用obj.style.top=100;但在FireFox中必須加上單位,變成obj.style.top=100+'px';style.left同理。 瀏覽器的判斷:window.navigator.userAgent.indexOf("IE") == -1 //非IE瀏覽器 FireFox,ChromeFireFox沒有onmouseover和onmouseout,onclick事件,他們的寫法為:Code highlighting produced by Actipro
例如:在js中,為一個button添加onclick事件可以這樣寫:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->button.onclick = ClickEvent; ClickEvent是一個函數。這樣在ClickEvent沒有參數的時候是可以的,但在ClickEvent需要一個參數的時候,就不行了。這時可以這樣添加:Code
1.document.documentElement.getBoundingClientRectMSDN對此的解釋是:SyntaxoRect = object.getBoundingClientRect()Return ValueReturns a TextRectangle object. Each rectangle has four integer properties (top, left, right, and bottom) that represent a