摘要:
在 //选中 lay(ul).find('li').on('click', function(){ //结尾处添加 if (options.done "year") { that.setValue(that.parse()).remove(); } <script src="laydate/layd 阅读全文
摘要:
var str0 = '2013-6-7()'; var AAAAADD = str0.match(/(\d)/g); //11个空字符串 //["2", "0", "1", "3", "6", "7"] var AAAAAD = str0.match(/\d/g); //11个空字符串 // ["2", "0", "1", "3", ... 阅读全文
摘要:
private void button1_Click(object sender, EventArgs e) { //转换 string str1 = "表达式1?表达式2:表达式3"; str1.IndexOf('?'); //查找第一个?所在位置 StringBuilder... 阅读全文
摘要:
//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',... 阅读全文
摘要:
阅读全文
摘要:
//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... 阅读全文
摘要:
//增加特殊符号属性 //写法 构造函数模式 原型模式 原型 写法2 new 之后的对象 包括 阅读全文
摘要:
foreach (System.Reflection.PropertyInfo p in users.GetType().GetProperties()) { var xx = p.Name; var yy = p.GetValue(users); } Type type = typeof(pof) 阅读全文