From:一条被猫抛弃的他乡流浪狗!

01 2016 档案

摘要:List<Enterprise> epList = ViewBag.epList; foreach (var item in epList){ //todo ... } 当 List<Enterprise> epList = ViewBag.epList; 变为 List<EnterpriseInf 阅读全文
posted @ 2016-01-31 13:22 ICE_Inspire 阅读(307) 评论(0) 推荐(0)
摘要:1.0 jQuery 序列化表单数据 serialize() 得到的是 ""; 表单元素没有name属性.(用的美工的页面,没注意这个细节.) 阅读全文
posted @ 2016-01-30 09:50 ICE_Inspire 阅读(261) 评论(0) 推荐(0)
摘要:写了一个脚本,如下: 1 $(function () { 2 $("#btnVcode").click(function () { 3 var receiveMobile = $("#Moblie").val();//手机号 4 var regMobile = /^1[3|4|5|7|8][0-9] 阅读全文
posted @ 2016-01-29 19:25 ICE_Inspire 阅读(2735) 评论(0) 推荐(0)
摘要:添加了mvc区域以后,可能出现以下错误... 找到多个与名为“Login”的控制器匹配的类型。如果为此请求(“{controller}/{action}/{id}”)提供服务的路由在搜索匹配此请求的控制器时没有指定命名空间,则会发生此情况。如果是这样,请通过调用含有 'namespaces' 参数的 阅读全文
posted @ 2016-01-29 16:11 ICE_Inspire 阅读(1261) 评论(2) 推荐(0)
摘要:1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <ti 阅读全文
posted @ 2016-01-28 20:08 ICE_Inspire 阅读(223) 评论(0) 推荐(0)
摘要:1.0 创建Attribute using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace LSUnion.Site.WebHelper { [AttributeUsag 阅读全文
posted @ 2016-01-28 16:13 ICE_Inspire 阅读(726) 评论(0) 推荐(0)
摘要:后台代码: using Webdiyer.WebControls.Mvc; 1 public ActionResult Index(int id = 1) 2 { 3 int pageIndex = id; 4 int count; 5 int pageSize = 7; 6 7 List<News 阅读全文
posted @ 2016-01-27 10:31 ICE_Inspire 阅读(528) 评论(0) 推荐(1)
摘要:MVC 创建线程内的db单例 阅读全文
posted @ 2016-01-26 17:06 ICE_Inspire 阅读(527) 评论(4) 推荐(0)
摘要:问题ServletLifeCycle中的service方法内,有super.service(request, response); 会执行this.doGet(HttpServletRequest request, HttpServletResponse response);没有super.serv... 阅读全文
posted @ 2016-01-22 08:25 ICE_Inspire 阅读(624) 评论(0) 推荐(1)
摘要:重构手法1.0 Extract Method 提炼函数:你有一段代码可以被组织在一起并独立出来。做法:将这段代码放进一个独立函数中,并让函数名称解释该函数的用途。2.0 Inline Method 内联函数:一个函数的本体与名称同样清楚易懂。做法:在函数调用点插入函数本体,然后移除该函数。3.0 I... 阅读全文
posted @ 2016-01-16 19:49 ICE_Inspire 阅读(348) 评论(0) 推荐(0)
摘要:代码的坏味道Duplicated Code 重复代码Long Method 过长函数Large Class 过大的类Long Parameter List 过长参数列:类或者结构Divergent Change 发散式变化:一个类受多种变化的影响Shotgun Surgery 霰弹式修改:一种变化引... 阅读全文
posted @ 2016-01-16 19:48 ICE_Inspire 阅读(193) 评论(0) 推荐(0)
摘要:1.0 jquery的ajax同步和异步区别2.0cdnjquery加载失败加载本地 阅读全文
posted @ 2016-01-05 17:31 ICE_Inspire 阅读(151) 评论(0) 推荐(0)
摘要:1 static void Ckeditor() 2 { 3 string tags = @"<p><span style=""font-size:18px"">12</span>34</p>"; 4 //正则表达式的引擎是贪婪,只要模式允许,它将匹配尽可能多的字符。 5 //如何匹配满足条件的最短 阅读全文
posted @ 2016-01-04 10:49 ICE_Inspire 阅读(1250) 评论(0) 推荐(0)
摘要:百度分享 http://share.baidu.com/ 最简洁的例子: <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data 阅读全文
posted @ 2016-01-04 10:44 ICE_Inspire 阅读(493) 评论(0) 推荐(0)