From:一条被猫抛弃的他乡流浪狗!
摘要: 1.0 Fiddler 2.0 Pingdom:免费网站监控服务 3.0 google浏览器 4.0 Lantern https://github.com/getlantern/lantern-binaries 阅读全文
posted @ 2016-02-15 16:50 ICE_Inspire 阅读(164) 评论(0) 推荐(0)
摘要: 1 <script type="text/javascript" src="//libs.baidu.com/jquery/1.7.2/jquery.min.js"></script> 2 <!--如果cdn jQ加载不成功 加载本地jQ库 --> 3 <script type="text/java 阅读全文
posted @ 2016-02-15 11:39 ICE_Inspire 阅读(517) 评论(0) 推荐(0)
摘要: Form--> 大数据:正在到来的数据革命,以及它如何改变政府、商业与我们的生活 平装 – 2013年4月1日 涂子沛 (作者) 最小数据集(Minimum Data Set,MDS)最小数据集的概念起源于美国的医疗领域,用来统一医疗账单.最小数据集是指通过收集最少的数据,最好地掌握一个研究对象所具 阅读全文
posted @ 2016-02-03 19:43 ICE_Inspire 阅读(722) 评论(2) 推荐(0)
摘要: 1.0 引入: <script src="/js/jquery.tmpl.min.js"></script> 2.0 模板: <script type="text/x-jquery-tmpl" id="tmpl"> <li> <h5><a href="/news/Detail/${NewsId}"> 阅读全文
posted @ 2016-02-01 19:35 ICE_Inspire 阅读(1217) 评论(0) 推荐(1)
摘要: 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 阅读(313) 评论(0) 推荐(0)
摘要: 1.0 jQuery 序列化表单数据 serialize() 得到的是 ""; 表单元素没有name属性.(用的美工的页面,没注意这个细节.) 阅读全文
posted @ 2016-01-30 09:50 ICE_Inspire 阅读(263) 评论(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 阅读(2739) 评论(0) 推荐(0)
摘要: 添加了mvc区域以后,可能出现以下错误... 找到多个与名为“Login”的控制器匹配的类型。如果为此请求(“{controller}/{action}/{id}”)提供服务的路由在搜索匹配此请求的控制器时没有指定命名空间,则会发生此情况。如果是这样,请通过调用含有 'namespaces' 参数的 阅读全文
posted @ 2016-01-29 16:11 ICE_Inspire 阅读(1269) 评论(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 阅读(226) 评论(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 阅读(728) 评论(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 阅读(530) 评论(0) 推荐(1)
摘要: MVC 创建线程内的db单例 阅读全文
posted @ 2016-01-26 17:06 ICE_Inspire 阅读(531) 评论(4) 推荐(0)
摘要: 问题ServletLifeCycle中的service方法内,有super.service(request, response); 会执行this.doGet(HttpServletRequest request, HttpServletResponse response);没有super.serv... 阅读全文
posted @ 2016-01-22 08:25 ICE_Inspire 阅读(628) 评论(0) 推荐(1)
摘要: 重构手法1.0 Extract Method 提炼函数:你有一段代码可以被组织在一起并独立出来。做法:将这段代码放进一个独立函数中,并让函数名称解释该函数的用途。2.0 Inline Method 内联函数:一个函数的本体与名称同样清楚易懂。做法:在函数调用点插入函数本体,然后移除该函数。3.0 I... 阅读全文
posted @ 2016-01-16 19:49 ICE_Inspire 阅读(352) 评论(0) 推荐(0)
摘要: 代码的坏味道Duplicated Code 重复代码Long Method 过长函数Large Class 过大的类Long Parameter List 过长参数列:类或者结构Divergent Change 发散式变化:一个类受多种变化的影响Shotgun Surgery 霰弹式修改:一种变化引... 阅读全文
posted @ 2016-01-16 19:48 ICE_Inspire 阅读(195) 评论(0) 推荐(0)
摘要: 1.0 jquery的ajax同步和异步区别2.0cdnjquery加载失败加载本地 阅读全文
posted @ 2016-01-05 17:31 ICE_Inspire 阅读(154) 评论(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 阅读(1253) 评论(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 阅读(494) 评论(0) 推荐(0)
摘要: 表的一个字段:Moblie char(15)对应的mvc代码:@Html.EditorFor(c => c.Mobile) [RegularExpression("^1[3|4|5|7|8][0-9]\\d{8}$", ErrorMessage = "手机号码格式不对")] publi... 阅读全文
posted @ 2015-12-29 10:28 ICE_Inspire 阅读(272) 评论(0) 推荐(0)
摘要: 前台页面 1 @{ 2 Layout = null; 3 } 4 5 6 7 8 9 10 upload11 12 13 14 文件名称:15 上传文件:16 17 18 ... 阅读全文
posted @ 2015-12-12 17:29 ICE_Inspire 阅读(769) 评论(0) 推荐(0)