摘要: 案例1: 案例2: x=1,y=2x1=2,y1=11 阅读全文
posted @ 2016-12-03 10:45 hoey94 阅读(2470) 评论(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 阅读(3898) 评论(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 阅读(1663) 评论(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 阅读(18913) 评论(0) 推荐(1) 编辑
摘要: 判断以下哪种书写时正确的? 1.ArrayList<String> lists = new ArrayList<String>();2.ArrayList<Object> lists = new ArrayList<String>();3.ArrayList<String> lists = new 阅读全文
posted @ 2016-11-24 10:32 hoey94 阅读(1739) 评论(1) 推荐(0) 编辑
摘要: 以下情况会被认为返回false: "" 空的字符串 为 0 的数字 为 null 的对象 为 undefined 的对象 布尔值 false 反之为真。 阅读全文
posted @ 2016-11-24 10:27 hoey94 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-11-23 22:56 hoey94 阅读(3321) 评论(0) 推荐(0) 编辑
摘要: 假如我们需要去定位一个动态生成的div,我们需要为它指定一个动态的id 例如: 前台使用EL进行迭代LIST生成div,为其添加动态的id,生成之后变成下面样式 <div id="tz-1"></div> <div id="tz-2"></div> <div id="tz-3"></div> <di 阅读全文
posted @ 2016-11-23 12:27 hoey94 阅读(7258) 评论(0) 推荐(0) 编辑
摘要: HQL运算符 QBC运算符 含义 = Restrictions.eq() 等于equal <> Restrictions.ne() 不等于not equal > Restrictions.gt() 大于greater than >= Restrictions.ge() 大于等于greater tha 阅读全文
posted @ 2016-11-23 11:56 hoey94 阅读(134) 评论(0) 推荐(0) 编辑