摘要: $("#btnCreate").click(function () { $("#modalwindow").html(""); $("#modalwindow").window({ title: '@Resource.Create', width: 700, height: 400, iconCls: 'icon-add' }).window('open'); }); $("#btnEd... 阅读全文
posted @ 2016-12-03 23:46 hoey94 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 委托 委托让我们可以把函数引用保存在变量中。这就像在 C++ 中使用 typedef 保存函数指针一样。 委托使用关键字 delegate 声明。看看这个例子,你就能理解什么是委托: 例子: 代码: 阅读全文
posted @ 2016-12-03 11:20 hoey94 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 案例1: 案例2: x=1,y=2x1=2,y1=11 阅读全文
posted @ 2016-12-03 10:45 hoey94 阅读(2472) 评论(0) 推荐(0) 编辑
摘要: 1.readonly 修饰符仅用于修饰类的数据成员。正如其名字说的,一旦它们已经进行了写操作、直接初始化或在构造函数中对其进行了赋值,数据成员就只能对其进行读取。 readonly 和 const 数据成员不同之处在于 const 要求你在声明时进行直接初始化。 2.sealed 带有 sealed 阅读全文
posted @ 2016-12-03 10:28 hoey94 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 方法的调用 阅读全文
posted @ 2016-12-03 10:25 hoey94 阅读(3899) 评论(0) 推荐(0) 编辑
摘要: 以下是 C# 内建类型的列表: 类型 字节 描述 byte 1 unsigned byte sbyte 1 signed byte short 2 signed short ushort 2 unsigned short int ... 阅读全文
posted @ 2016-12-03 10:23 hoey94 阅读(1664) 评论(0) 推荐(0) 编辑
摘要: // 一维数组 int[] arr = { 1, 2, 3, 4, 5 }; foreach (int i in arr) { Console.WriteLine(i.ToString() + "\r"); } // 二维数组 int[,] arr2 = { { 1, 2 }, { 3, 4 } } 阅读全文
posted @ 2016-12-03 10:21 hoey94 阅读(18917) 评论(0) 推荐(1) 编辑