摘要:
委托的定义:使用委托在委托对象的内部封装对某个方法的引用。委托是类型安全的,可靠的托管对象。相当于函数指针。委托总是指向一个有效的对象,并且不会破坏其他对象所在的内存。使用委托的场景:声明委托 - 实例化委托 - 调用委托 //声明委托 delegate void MyDelegate1(string s); public class MyClass { public static void Hello(string s) { // do something1 } public... 阅读全文
posted @ 2012-01-30 23:28
Jacky IT
阅读(306)
评论(0)
推荐(0)
摘要:
1.argumentsAn array-like object corresponding to the arguments passed to a function.arguments.callee Reference to the currently executing function.arguments.caller ---arguments.callee.caller (Obsolete) Reference to the function that invoked the currently executing function.arguments.length Refe... 阅读全文
posted @ 2012-01-30 19:13
Jacky IT
阅读(187)
评论(0)
推荐(0)
摘要:
所谓的页面生存周期,指的是一个 ASP.NET 页面对象从初始化到销毁经过的步骤。在通常情况下,一旦某个请求对应到一个ASP.NET 页面时,一个直接或间接继承自Sysytem.Web.UI.Page类型的对象开始初始化,并且开始执行页面生存周期中的所有步骤。而该类型的对象,就是客户端请求的ASP.NET 页面的后台托管代码。ASP.NET页面生存周期各步骤的功能大致分类:1. 初始化2. 加载数据和页面3. 触发时间4. 保存状态并呈现页面1. 初始化 - PreInit 、 Init 、InitComplete 三个步骤2. 加载数据和页面 LoadState ProcessPostDat 阅读全文
posted @ 2012-01-30 17:00
Jacky IT
阅读(1582)
评论(0)
推荐(0)

浙公网安备 33010602011771号