摘要: //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 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-05-31 16:54 enych 阅读(168) 评论(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 阅读(154) 评论(0) 推荐(0) 编辑
摘要: //增加特殊符号属性 //写法 构造函数模式 原型模式 原型 写法2 new 之后的对象 包括 阅读全文
posted @ 2018-05-31 15:07 enych 阅读(160) 评论(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 阅读(4579) 评论(0) 推荐(0) 编辑