上一页 1 ··· 8 9 10 11 12
摘要: Func是委托(delegate)Expression>是表达式Expression编译后就会变成delegate,才能运行。比如Expression> ex = x=>x func = ex.Compile();然后你就可以调用func:func(5) //-返回 truefunc(200) /... 阅读全文
posted @ 2015-05-20 17:26 A·DONG 阅读(488) 评论(0) 推荐(0)
摘要: 1.//ToDO:此标记运行时会显示在任务列表窗口中。 阅读全文
posted @ 2015-05-15 23:02 A·DONG 阅读(544) 评论(0) 推荐(0)
摘要: 1.代码中追踪函数的详细代码:F12 阅读全文
posted @ 2015-05-15 21:07 A·DONG 阅读(159) 评论(0) 推荐(0)
摘要: 在 ASP.NET MVC 应用程序中,它是更常见的做法在作为路由数据 (像我们一样与身份证上面) 比将它们作为查询字符串传递的参数中传递。public string Welcome(string name, int ID = 1){ return HttpUtility.HtmlEncode... 阅读全文
posted @ 2015-05-11 21:07 A·DONG 阅读(778) 评论(0) 推荐(0)
摘要: 安全说明: 上面的代码使用HttpServerUtility.HtmlEncode来保护应用程序的恶意输入 (即 JavaScript)。详细信息请参阅如何: 在 Web 应用程序,通过应用 HTML 编码的字符串防止脚本侵入.例如:public string Welcome(string name... 阅读全文
posted @ 2015-05-11 20:59 A·DONG 阅读(277) 评论(0) 推荐(0)
摘要: 1.SQL语句if not exists ( select 1 from tb where xxx='XXX') //不存在,则插入数据 begin insert into tb(xxx) values('XXX') //这里自己定义,插入或更新都可以 end... 阅读全文
posted @ 2015-05-02 15:46 A·DONG 阅读(348) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12