上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: /// /// 计算日期的间隔(静态类) /// public static class dateTimeDiff { /// /// 计算日期间隔 /// /// 要参与计算的其中一个日期字符串 /// 要参与计算的另一个日期字符串 /// 一个表示日期间隔的TimeSpan类型 public static TimeSpan ... 阅读全文
posted @ 2016-02-26 10:55 chenjingchun 阅读(1764) 评论(0) 推荐(0)
摘要: [HttpPost] public ActionResult PostTest() { //你的业务代码 //...... //要执行的js string js = "window.location.href='/Home/index2';"; return JavaScript(js); } ps 阅读全文
posted @ 2016-02-25 11:12 chenjingchun 阅读(577) 评论(0) 推荐(0)
摘要: 需引用System.Dynamic命名空间 来源:http://www.cnblogs.com/ryanding/archive/2010/12/09/1900106.html dynamic Customer = new ExpandoObject(); Customer.Name = "Lucy"; Customer.Age = 20; Customer.Female = true;... 阅读全文
posted @ 2016-01-28 15:53 chenjingchun 阅读(413) 评论(0) 推荐(0)
摘要: 推荐一款好用的alert,下面地址是demo,很直观的看到效果,wap可以使用http://www.dglives.com/demo/sweetalert-master/example/ //text:内容 //timer:显示时间 //type:图标类型:success,info,warning 默认info //title:标题 可不填 默认:系统提示 function AlertC... 阅读全文
posted @ 2016-01-22 18:06 chenjingchun 阅读(1319) 评论(0) 推荐(0)
摘要: @Html.DropDownListFor(model => model.SchoolId, new SelectList(ViewBag.SelectList, "SchoolTypeId", "Name"), "请选择")//model.SchoolId类型Int ViewBag.SelectList集合 @Html.ValidationMessageFor(mod... 阅读全文
posted @ 2016-01-22 16:44 chenjingchun 阅读(476) 评论(0) 推荐(0)
摘要: XmlDocument xmldoc = new XmlDocument(); string xmlPath = HttpContext.Server.MapPath("~/*****.xml"); xmldoc.Load(xmlPath); XmlElement root = xmldoc.DocumentElement; string node = root.SelectSingleNo... 阅读全文
posted @ 2016-01-22 16:42 chenjingchun 阅读(169) 评论(0) 推荐(0)
摘要: public static string SortParam(T t) { string tStr = string.Empty; if (t == null) { return string.Empty; } System.... 阅读全文
posted @ 2016-01-22 16:38 chenjingchun 阅读(719) 评论(0) 推荐(0)
摘要: 1、checkbox日常jquery操作。 现在我们以下面的html为例进行checkbox的操作。 2、radio的jquery日常操作及属性 我们仍然以下面的html为例: radio操作如下: 3、select下拉框的日常jquery操作 select操作相比checkbox和radio要相对 阅读全文
posted @ 2016-01-22 16:03 chenjingchun 阅读(394) 评论(0) 推荐(0)
摘要: Newtonsoft.Json.Converters.IsoDateTimeConverter iso = new Newtonsoft.Json.Converters.IsoDateTimeConverter(); iso.DateTimeFormat = "yyyy/M/d HH:mm:ss"; 阅读全文
posted @ 2016-01-22 15:39 chenjingchun 阅读(677) 评论(0) 推荐(0)
摘要: $(function() { $("#go").click(function() { var models = []; $.each($("table tr"), function(i, item) { var ProductName = $(item).find("[name=ProductNam 阅读全文
posted @ 2016-01-22 15:36 chenjingchun 阅读(329) 评论(0) 推荐(1)
上一页 1 ··· 6 7 8 9 10 11 12 下一页