会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
enych
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
21
22
23
24
25
26
27
28
29
···
52
下一页
2019年3月2日
C# 把时间 月 //把第一个0替换为空
摘要: string str = "2019-01"; //name: "2019-01月" str = str.Substring(str.Length - 2, 2); //把第一个0替换为空 var t = Convert.ToInt32(str).ToString();
阅读全文
posted @ 2019-03-02 17:39 enych
阅读(1055)
评论(0)
推荐(0)
2019年3月1日
C# 获得 当年1月1号
摘要: //默认当年1月1号 ViewBag.time1 = new DateTime(DateTime.Now.Year, 1, 1).ToString("yyyy-MM-dd"); ViewBag.time2 = DateTime.Now.ToString("yyyy-MM-dd"); new Date
阅读全文
posted @ 2019-03-01 10:05 enych
阅读(4756)
评论(0)
推荐(0)
2019年2月27日
js 跨域测试
该文被密码保护。
阅读全文
posted @ 2019-02-27 12:18 enych
阅读(0)
评论(0)
推荐(0)
2019年2月26日
C# 金钱添加逗号0000
摘要: private void Form1_Load(object sender, EventArgs e) { decimal dd = (decimal)11234567890.01; string ddstr = dd.ToString(); test(ddstr); } ...
阅读全文
posted @ 2019-02-26 18:11 enych
阅读(383)
评论(0)
推荐(0)
js 判断 微信浏览器
摘要:
阅读全文
posted @ 2019-02-26 17:24 enych
阅读(204)
评论(0)
推荐(0)
2019年2月14日
Html test
摘要: <!DOCTYPE html><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head> <meta charset="utf-8" /> <title></title></head><body> <div id="list" style=
阅读全文
posted @ 2019-02-14 18:09 enych
阅读(788)
评论(0)
推荐(0)
2019年1月29日
C# SetWindowsHookEx
摘要: [DllImport("user32.dll")] static extern IntPtr SetWindowsHookEx(int idHook, keyboardHookProc callback, IntPtr hInstance, uint threadId); /// /// 安装钩子 /// ...
阅读全文
posted @ 2019-01-29 17:07 enych
阅读(2407)
评论(0)
推荐(0)
2019年1月28日
C# 获得固定年月日
摘要: /// /// 获得固定年月日,时和分不固定 : 2019-01-01 00:00:00 /// /// public DateTime GetFixedDateTime(string Hour = "", string Minute = "") { string time1 = Da...
阅读全文
posted @ 2019-01-28 11:22 enych
阅读(1492)
评论(0)
推荐(0)
2019年1月24日
windows 设置注册表服务自动启动
摘要: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\xxx\Start = 1,2=自动,3,4=禁用
阅读全文
posted @ 2019-01-24 17:49 enych
阅读(1581)
评论(0)
推荐(0)
2019年1月21日
C# 计算百分比
摘要: //计算比率 decimal A =(decimal) 200.20; decimal B = (decimal)1000.20; decimal t = decimal.Parse((A/B).ToString("0.000")) ; //保留3位小数 // ...
阅读全文
posted @ 2019-01-21 14:06 enych
阅读(16588)
评论(0)
推荐(0)
上一页
1
···
21
22
23
24
25
26
27
28
29
···
52
下一页
公告