05 2018 档案

摘要://Js 数据容量单位转换(kb,mb,gb,tb)(未注释) function bytesToSize(bytes) { if (bytes === 0) return '0 B'; var k = 1024, // or 1024 ////1024字节(b)=1千字节(kb) sizes = ['B',... 阅读全文
posted @ 2018-05-31 17:31 enych 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-05-31 16:54 enych 阅读(170) 评论(0) 推荐(0) 编辑
摘要://JavaScript创建对象的七种方式 //https://xxxgitone.github.io/2017/06/10/JavaScript%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E4%B8%83%E7%A7%8D%E6%96%B9%E5%BC%8F/ 出处 //--1.工厂模式 funct... 阅读全文
posted @ 2018-05-31 15:39 enych 阅读(155) 评论(0) 推荐(0) 编辑
摘要://增加特殊符号属性 //写法 构造函数模式 原型模式 原型 写法2 new 之后的对象 包括 阅读全文
posted @ 2018-05-31 15:07 enych 阅读(162) 评论(0) 推荐(0) 编辑
摘要:foreach (System.Reflection.PropertyInfo p in users.GetType().GetProperties()) { var xx = p.Name; var yy = p.GetValue(users); } Type type = typeof(pof) 阅读全文
posted @ 2018-05-31 10:21 enych 阅读(4618) 评论(0) 推荐(0) 编辑
摘要:地址1 https://blog.csdn.net/zhuoyue008/article/details/53323278 地址2 https://www.cnblogs.com/sydeveloper/archive/2013/02/25/2932571.html vbs Set wshobj=W 阅读全文
posted @ 2018-05-04 11:59 enych 阅读(274) 评论(0) 推荐(0) 编辑
摘要://创建ManagementObjectSearcher对象 ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia"); String strHardDiskID = null;/... 阅读全文
posted @ 2018-05-02 14:16 enych 阅读(8779) 评论(1) 推荐(0) 编辑
摘要:private void Form1_Load(object sender, EventArgs e) { Process[] processes = Process.GetProcesses();//获取所有进程信息 for (int i = 0; i < processes.Length; i++) {... 阅读全文
posted @ 2018-05-02 10:21 enych 阅读(347) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示