摘要: //js方法传对象参数转换 JSON.stringify(data).replace(/"/g, '"') //正则校验数字 el.value.replace(/^[^1-9]\D*$/g,'').replace(/\D/g,'')/* .toString().substring(0,4); */ 阅读全文
posted @ 2017-02-21 12:01 正在学习的孩子 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 ... 阅读全文
posted @ 2017-02-21 11:59 正在学习的孩子 阅读(228) 评论(0) 推荐(0) 编辑
摘要: //使用rows属性,获取表格中行的数目 //获取表格中列的数据 //遍历table表格的每一个单元格,并将其中的内容存入数组 阅读全文
posted @ 2017-02-21 11:58 正在学习的孩子 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 1.namespace: 相当于schema文件的id 2.targetNamespace属性: 用来指定schema文件的namespace的值 3.xmlns属性: 引入一个约束,它的值是一个schema文件的namespace值 4.schemaLocation属性: 用来指定引入的schem 阅读全文
posted @ 2017-02-21 11:56 正在学习的孩子 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1.@interface实际上是继承了java.lang.annotation.Annotation,所以定义annotation时不能继承其他annotation或interface. java.lang.annotation.Retention告诉编译器如何对待 Annotation,使用Retention时,需要提供java.lang.annotation.RetentionPo... 阅读全文
posted @ 2017-02-21 11:55 正在学习的孩子 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ToStringBuilder.reflectionToString:编辑对象及其属性的显示格式。 描述:ToStringBuilder比较适合在打日志时,输出参数的信息,特别是在参数为对象时,该工具类能够很方便的自动打印对象中的属性值。 2.Collections.shuffle():把一个集合随 阅读全文
posted @ 2017-02-21 11:54 正在学习的孩子 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.导出: 阅读全文
posted @ 2017-02-21 11:52 正在学习的孩子 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.基本数据类型:byte,short,int,long,float,doule,boolean,char. 2.引用数据类型:String,Integer,Double,Long... 3.数据集合: Collection ├List │├LinkedList │├ArrayList │└Vect 阅读全文
posted @ 2017-02-21 11:45 正在学习的孩子 阅读(133) 评论(0) 推荐(0) 编辑