上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: 请参考:http://www.cnblogs.com/inforasc/archive/2009/10/12/1582110.html 阅读全文
posted @ 2014-12-23 15:18 JasonGu0 阅读(165) 评论(0) 推荐(0)
摘要: public static class ChineseToPinYin { private static readonly Dictionary CodeCollections = new Dictionary {{ -20319, "a" }, { -20317, "... 阅读全文
posted @ 2014-12-23 13:15 JasonGu0 阅读(430) 评论(0) 推荐(0)
摘要: public class Student { public int ID { get; set; } [Required(ErrorMessage = "学生姓名不能为空")] [StringLength(4, ErrorMessage = "最多只能... 阅读全文
posted @ 2014-12-23 09:57 JasonGu0 阅读(235) 评论(0) 推荐(0)
摘要: 视图页面的代码如下: @using (Ajax.BeginForm( "Search",//Action "Test",//Controller new AjaxOptions { InsertionMode = I... 阅读全文
posted @ 2014-12-19 14:36 JasonGu0 阅读(298) 评论(0) 推荐(0)
摘要: 1,需要引用一个JS文件jquery.unobtrusive-ajax.min.js【MVC4 默认存在Scripts文件夹里】引用到母版页_Layout.cshtml,并且一定要放在JQuery引用文件之后 2,需要添加一个分布视图到指定的目录里,分布视图是用来显示局部刷新的 3,控制器里面... 阅读全文
posted @ 2014-12-19 13:39 JasonGu0 阅读(724) 评论(0) 推荐(0)
摘要: 1.JS去掉字符串首尾空格符(利用正则表达式) //去掉首尾的空格符 function trim(vStr) { // 首 尾 return vStr.replace(/(^\s*)/g, "").replace(/(\s*$)/g, ""); }2.Json对象转换成字符串 var last=ob... 阅读全文
posted @ 2014-12-18 13:47 JasonGu0 阅读(110) 评论(0) 推荐(0)
摘要: 1.使用全局的JSON对象,代码如下:function strToJson(str){return JSON.parse(str);} 2.new Function形式,代码如下function strToJson(str){var json = (new Function("return " + ... 阅读全文
posted @ 2014-12-10 11:35 JasonGu0 阅读(270) 评论(0) 推荐(0)
摘要: using System.Collections.Generic;using System.Collections.ObjectModel;using System.Linq;using System.Text;using Microsoft.International.Converters.Pin... 阅读全文
posted @ 2014-12-03 14:05 JasonGu0 阅读(299) 评论(0) 推荐(0)
摘要: usingSystem; usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingMicrosoft.CSharp;usingSystem.CodeDom.Compiler;usingSystem.Reflecti... 阅读全文
posted @ 2014-11-03 23:45 JasonGu0 阅读(2131) 评论(0) 推荐(0)
摘要: 在MySQL存储过程的语句中有三个标准的循环方式:WHILE循环,LOOP循环以及REPEAT循环。还有一种非标准的循环方式:GOTO,不过这种循环方式最好别用,很容易引起程序的混乱,在这里就不错具体介绍了。 这几个循环语句的格式如下:WHILE……DO……ENDWHILEREPEAT……UNTIL... 阅读全文
posted @ 2014-11-03 23:29 JasonGu0 阅读(5329) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页