摘要: 1.添加引用CKEditor.dll,CKFinder.dll2.添加样式JS3.页面注册4.引用js5.使用插件 阅读全文
posted @ 2014-04-08 15:37 指尖下的代码 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 为了减少可空类型的代码量,遇到null的时候C#提供了??操作符来获取如果为空的默认值。static void Main(string[] args) { int? nVal1 = null; int? nVal2 = 5; // nVal1为空,相乘后还是null,输出0作为默认值 Console.WriteLine(2 * nVal1 ?? 0); // nVal2非空,取计算值输出,输出10 Console.WriteLine(2 * nVal2 ?? 0);} 阅读全文
posted @ 2014-04-08 09:41 指尖下的代码 阅读(233) 评论(0) 推荐(0) 编辑