Time of Update: 2018-12-06
--------------------錯誤記錄檔------------------------------------- console.log("hello world")console.log(2,4,6,8,"foo",bar)console.log("%a,%b","foo",bar) // "%"用於定義量console.log("%s is %d years old.", "Bob", 42).---------------------------簡單的測試效能--------
Time of Update: 2018-12-06
最近做MVC的項目,運用DataAnnotation(using
Time of Update: 2018-12-06
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script> <script type="text/javascript"> $(
Time of Update: 2018-12-06
Discuz!NT模板中用到的文法是很少的, 我們的目的就是為了讓沒有程式語言基礎的人也可以快速掌握. 基本語句如下: 文法含義舉例<%template tplname%>包含某個已存在的模板檔案<%template _header%>{varname}顯示變數{username}{var[...]}顯示資料變數裡的指定欄位的值{forum[name]}<%loop item list%>
Time of Update: 2018-12-06
<%template _head%><body> {cc} <%csharp%> dd(); <%/csharp%> <%loop (UserInfo) userinfo listUsers%>//實體列表 <li> <a href="#">{userinfo.Name} {userinfo.dd()} <!--
Time of Update: 2018-12-06
With the release of the new version NHibernate (3.0 alpha1), I’ve decided to give it a try and branch my current solution to switch to this new version and see hoe it goes.I was especially interested in the new Linq support, cause I’ve decided to
Time of Update: 2018-12-06
http://student.csdn.net/space.php?uid=117956&do=blog&id=257891: QBE (Query By Example) Criteria cri = session.createCriteria(Student.class); cri.add(Example.create(s)); //s是一個 Student 對象 list cri.list();
Time of Update: 2018-12-06
UI介面 <script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script> <script type="text/javascript"> $(function () { $("#btn").click(function () { $.ajax({ type: "P
Time of Update: 2018-12-06
文章目錄 候補的命名規則(Naming Convention for Alternates)映射一個模板檔案到一個候補(Mapping a Template File to an Alternate)Url候補(URL Alternates)明確的來指定一個候補(Explicitly Designating an Alternate Template)通過代碼來添加候補(Adding Alternates Through Code)參考文檔
Time of Update: 2018-12-06
數組,集合,IEnumerable介面,迭代器 發展:數組-->集合-->泛型(1)數組1. 數組資料結構是System.Array類的一個執行個體.2. System.Array類的文法為[SerializableAttribute] [ComVisibleAttribute(true)] public abstract class Array : ICloneable, IList, ICollection, IEnumerable3.
Time of Update: 2018-12-06
OBJECT作參數時是傳址的(就是你說的傳引用)String雖然是參考型別,但是當參數使用時你要當作是傳值,不是傳址,就對了。其它基本類型都是傳值的 我一直想當然的認為 兩個String 類型如果用 == 操作符比較,將比較其引用。所以如果兩個String引用不同,則只能使用Equal 來比較它們是否相等。 比如下面語句Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-06
/// <summary> /// 將DataReader轉換為DataTable /// </summary> /// <param name="reader">要被轉換的DataReader</param> ///
Time of Update: 2018-12-06
CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->無限級分類資料表:SQL代碼:create table t_power( id int not null IDENTITY(1,1) PRIMARY KEY, --許可權ID ParentId int not null default(0),
Time of Update: 2018-12-06
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-06
js定位的問題 得到絕對位置:方法1:function getAbsPoint(e) { var x = e.offsetLeft, y = e.offsetTop; while(e=e.offsetParent) { x += e.offsetLeft; y += e.offsetTop; } alert("x:"+x+","+"y:
Time of Update: 2018-12-06
做.NET方面也有好些年了,最近失業在家,幫忙做了些ASP的東東,發現Access資料庫還不怎麼會串連,那是個鬱悶中寫的sql不知道正確與否無意間查到別人的東東,現在借用下,呵呵http://apps.hi.baidu.com/share/detail/10348306 簡單的說:查詢--建立-- 設計檢視--選擇表或者不選--右鍵建立SQL視圖不會就看圖
Time of Update: 2018-12-06
這個問題困擾了很長一段時間,習慣了將DataTable、數組、集合綁定,拿到一個HashTable(包含索引值對)卻覺得無從下手。百度了一下,發現解決辦法還是挺多的,總結後有以下幾點:(1)將HashTable資料來源輸出成一個數組,將該數組綁定;(2)直接綁定,但是要指定DropDownList的Text和Value分別為HashTable的Key和Value。 例如: Hashtable ht = new Hashtable(); for(int
Time of Update: 2018-12-06
CodeCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-06
【考點】@Import指令的理解。【出現頻率】★★★★☆【解答】@Import指令可以聲明當前頁面中需要使用的命名空間,如果需要多個命名空間,只需添加多條@Import指令即可。【分析】本題考查面試者對編寫ASP.NET頁面時是否匯入過命名空間。該指令可編寫於*.aspx檔案、使用者控制項檔案、主版頁面檔案或Global.asax檔案,其編寫方法如以下代碼所示。<%@ Import Namespace="System.Data" %>以上代碼匯入了“System.Data”命名空間,
Time of Update: 2018-12-06
1.$param