摘要: 推荐一款好用的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 阅读(1287) 评论(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 阅读(465) 评论(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 阅读(146) 评论(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 阅读(692) 评论(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 阅读(319) 评论(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 阅读(655) 评论(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 阅读(308) 评论(0) 推荐(1) 编辑
摘要: PM> enable-migrations 已在项目“EasyWeChat.Data”中启用迁移。若要覆盖现有迁移配置,请使用 -Force 参数。 PM> add-migration 位于命令管道位置 1 的 cmdlet Add-Migration 请为以下参数提供值: Name: 20141021 正在为迁移“20141021”搭建基架。 此迁... 阅读全文
posted @ 2016-01-22 15:33 chenjingchun 阅读(3807) 评论(1) 推荐(0) 编辑
摘要: URL的获取很简单,ASP.NET通用: 【1】获取 完整url (协议名+域名+虚拟目录名+文件名+参数) 【2】获取 虚拟目录名+页面名+参数: 【3】获取 虚拟目录名+页面名: 【4】获取 域名: 【5】获取 参数: 【6】获取 端口: 二、当前controller、action的获取 阅读全文
posted @ 2016-01-22 15:31 chenjingchun 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 如何为代码选择开源许可证,这是一个问题。 世界上的开源许可证,大概有上百种。很少有人搞得清楚它们的区别。即使在最流行的六种 GPL、BSD、MIT、Mozilla、Apache和LGPL 之中做选择,也很复杂。 乌克兰程序员Paul Bagwell,画了一张分析图,说明应该怎么选择。这是我见过的最简 阅读全文
posted @ 2016-01-22 15:25 chenjingchun 阅读(200) 评论(0) 推荐(0) 编辑
摘要: var filter = $(this).val(); var filterResult = $(this).find('h2:Contains(' + filter + ')'); if (filterResult.length == 0) { //todo } 阅读全文
posted @ 2016-01-22 15:19 chenjingchun 阅读(540) 评论(0) 推荐(0) 编辑
摘要: html中js连续事件或频率控制 阅读全文
posted @ 2016-01-22 15:11 chenjingchun 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 1安装MySQL Connector/Net http://dev.mysql.com/downloads/connector/net/ 2还需要下载一个MySQL for VisualStudio版本,用于在VS中可以在数据源中引用MySQL http://dev.mysql.com/downloads/windows/visualstudio/ 【添加环境变量:C:\wamp\bin... 阅读全文
posted @ 2016-01-22 14:50 chenjingchun 阅读(416) 评论(2) 推荐(0) 编辑
摘要: MySQL基础配置之mysql的默认字符编码的设置(my.ini设置字符编码) MySQL的默认编码是Latin1,不支持中文,那么如何修改MySQL的默认编码呢,下面以设置UTF-8为例来说明. 需要注意的是,要修改的地方非常多,相应的修改方法也很多。下面是一种最简单最彻底的方法: 一、Windows系统 1、中止MySQL服务 2、在MySQL的安装目录下找到my.ini,... 阅读全文
posted @ 2016-01-22 14:45 chenjingchun 阅读(14784) 评论(0) 推荐(1) 编辑
摘要: [DbConfigurationType(typeof(MySqlEFConfiguration))]//添加特性 public partial class Model1 : DbContext { public Model1() : base("name=Model1") { } public DbSet text123 { get; se... 阅读全文
posted @ 2016-01-22 14:11 chenjingchun 阅读(532) 评论(0) 推荐(0) 编辑