- 博客(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关注的人