上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: using System.IO; using System.Runtime.Serialization.Json; using System.Text; namespace WebTest.Controllers { public class JsonConvert { /// /// 将对象转换为json /// ... 阅读全文
posted @ 2016-12-09 14:56 码到世界末日 阅读(142) 评论(0) 推荐(0)
摘要: 下载链接: http://pan.baidu.com/s/1qYVOD7Q 阅读全文
posted @ 2016-12-09 10:36 码到世界末日 阅读(155) 评论(0) 推荐(0)
摘要: 当程序报错:Uncaught TypeError: $(...).tmpl is not a function(…) 首先,需要引入juqey和tmpl:http://pan.baidu.com/s/1kVDarK7,密码:rtua 然后,注释掉@Scripts.Render("~/bundles/ 阅读全文
posted @ 2016-11-07 21:47 码到世界末日 阅读(4557) 评论(0) 推荐(0)
摘要: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 Person person1 = new Chiness("吉米"); 6 Person person2 = new Japanese("山本"); 7 person1.SayHe 阅读全文
posted @ 2016-11-02 10:48 码到世界末日 阅读(301) 评论(0) 推荐(0)
摘要: 一、加密解密方法 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; namespace MvcApplication1.Helper... 阅读全文
posted @ 2016-10-19 17:28 码到世界末日 阅读(1819) 评论(0) 推荐(0)
摘要: 在SQL Server数据库中表信息会用到Identity关键字来设置自增列。但是当有数据被删除的话,自增列就不连续了。如果想查询出这个表的信息,并添加一列连续自增的ID,可用如下查询语句: select Row_Number() over ( order by getdate() ) as ini 阅读全文
posted @ 2016-10-12 18:37 码到世界末日 阅读(464) 评论(0) 推荐(0)
摘要: 前台和后台代码呈现: 1.HTML 页面: 1 <style> 2 table tr th { 3 width: 100px; 4 } 5 6 table tr td { 7 width: 100px; 8 } 9 </style> 10 <script src="~/Scripts/jquery- 阅读全文
posted @ 2016-09-29 18:13 码到世界末日 阅读(724) 评论(0) 推荐(0)
摘要: 1、匹配正整数 1 while (true) 2 { 3 string str = Console.ReadLine(); 4 Regex regex = new Regex(@"^([0-9]{1,})$"); 5 Console.WriteLine(regex.IsMatch(str)); 6 阅读全文
posted @ 2016-08-23 10:25 码到世界末日 阅读(196) 评论(0) 推荐(0)
摘要: 一、LINQ查询表达式基础 1、简单的 LINQ 查询 1 static class Program 2 { 3 static void Main(string[] args) 4 { 5 List<Student> list = new List<Student>() 6 { 7 new Stud 阅读全文
posted @ 2016-08-17 16:55 码到世界末日 阅读(188) 评论(0) 推荐(0)
摘要: 一、不完整类型(partial type)实例 结果: 阅读全文
posted @ 2016-08-17 16:02 码到世界末日 阅读(572) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页