自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

转载 Thymeleaf 与 Javascript

在 javascript 代码中使用 Thymeleaf 模板引擎:<script th:inline="javascript"> $("#content").html( "<select name='status'>"+ " <option value=''>[[#{admin.common....

2016-10-30 11:04:00 371

转载 idea debug 变慢

在run模式下很快大概30s左右,在debug模式下花了2分钟,debug信息不断输出:Returning cached instance of singleton bean...。网上查了一下,说是可能是断点较多的因素,于是把断点都去掉后又运行了一下,问题解决。转载于:https://www.cnblogs.com/jinweijie0527/p/6012398.htm...

2016-10-30 08:19:00 147

转载 ubuntu新建用户无法登陆

使用sudo adduser 创建用户,不存在无法登陆问题,如果使用useradd创建用户xx,需要在新建home目录下建立用户目录。同时,需要修改用户目录的属主,命令:chown xx:xx 目录 ,还需要进一步修改目录下的文件的属主,特别是..,.Xauthority两个。修改完成即可成功登陆。转载于:https://www.cnblogs.com/jinweijie...

2016-04-16 20:56:00 619

转载 Linq group

using System;using System.Collections.Generic;using System.Linq;public class MyClass{ public static void RunSnippet() { var students = new[] { new {LName = "Jones",FName = "Mary",Age = 19,M...

2015-11-17 15:37:00 84

转载 泛型函数

using System;using System.Collections.Generic;public class MyClass{ static void DoStuff<T,S>(T t,S s) where T:MyClass { Console.WriteLine("T:{0}",t); Console.WriteLine("S:{0}",s); } pu...

2015-11-17 10:53:00 70

转载 自定义转换

using System;using System.Collections.Generic;class Person{ public int Age; public static explicit operator int(Person p) { return p.Age; }}public class MyClass{ public static void RunSnip...

2015-11-17 10:18:00 74

转载 扩展方法

using System;using System.Collections.Generic;sealed class MyData{ double D1,D2,D3; public MyData(double d1,double d2,double d3) { D1 = d1; D2 = d2; D3 = d3; } public double Sum() { return...

2015-11-16 13:50:00 71

转载 queue

using System;using System.Collections.Generic;using System.Text;public class MyClass{ public static void PrintValues(IEnumerable<Int32> myCollection) { IEnumerator<Int32> myEnumer...

2015-11-10 15:20:00 68

转载 实现IComparable、IComparer接口

using System;using System.Collections.Generic;public class MyClass{ public class Employee:IComparable<Employee> { public int EmpID; public string YearsOfSvc = "1"; public Employee(int ...

2015-11-10 14:30:00 98

转载 显式和隐式实现接口区别

显式实现接口默认不能加修饰符,访问级别默认为public,另外,访问显式实现的接口不能通过对象直接调用,要通过接口对象来调用。转载于:https://www.cnblogs.com/jinweijie0527/p/4935769.html...

2015-11-04 13:49:00 118

转载 as 和 is 区别

as 将对象转换某类型,如果失败则返回null。is用来判断对象是否为某个类型,在判断过程中会对对象进行两次转换,而as只有一次转换,故as效率高。转载于:https://www.cnblogs.com/jinweijie0527/p/4935741.html...

2015-11-04 13:40:00 887

转载 接口2

/** 由SharpDevelop创建。* 用户: jinweijie* 日期: 2015/10/28* 时间: 15:25** 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件*/usingSystem;namespaceInterface{interfaceIStorable{...

2015-10-28 16:54:00 53

转载 接口1

/** 由SharpDevelop创建。* 用户: jinweijie* 日期: 2015/10/28* 时间: 15:25** 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件*/usingSystem;namespaceInterface{interfaceIStorable{...

2015-10-28 16:45:00 61

转载 operator

/** 由SharpDevelop创建。* 用户: jinweijie* 日期: 2015/10/28* 时间: 9:15** 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件*/usingSystem;namespaceStudy{classFraction{int...

2015-10-28 10:00:00 60

转载 内部类学习

using System;using System.Collections.Generic;public class MyClass{ class A { int a; internal protected class B { public void Display() { A a1 = new A(); a1.a = 3; Console.Write...

2015-10-28 09:03:00 61

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除