自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 JS中的PadLeft、PadRight,位数不足,自动补位,String扩展方法

类似C#中的 PadLeft、PadRight 方法 //方法一 function FillZero(p) { return new Array(3 - (p + '').length + 1).join('0') + p; } FillZero(6); //输出006 //方法一扩展(C#中PadLeft、PadRight) Str

2017-09-28 17:08:42 9820 1

原创 SQL 利用游标循环添加数据

--查询数据 select Invest.UserId, BorrowReturn.RealReturnTime, Borrow.InvestType, case Borrow.InvestType when 0 then '理财收益成功000,请注意查收' when 1 then '理财收益成功111,请注意查收' when 2 then '理财收益成功222

2017-09-26 14:44:36 1194

原创 NopiHelper Excel导出 导入

先上一个Helper类:public class NopiHelper { public string DataTableToExcel(DataTable tempDataTable, string path, bool is2007 = true) { try { //创

2017-09-25 10:48:08 709

原创 对象转化成键值对

控制台程序:class Program { static void Main(string[] args) { User u = new User(); u.name = "ahbool"; u.gender = "男"; u.age = "1";

2017-09-21 16:05:09 4600

原创 MVC路由Route

控制器方法: public ActionResult Index(string controller, string action, int id) { ViewBag.Name1 = controller; ViewBag.Name2 = action; ViewBag.Name3 = id

2017-09-13 10:39:08 394

空空如也

空空如也

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

TA关注的人

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