摘要: 测试你的浏览器是否支持ES6规范的map和set,执行以下代码,如果浏览器报ReferenceError错误则不支持 'use strict'; var m = new Map(); var s = new Set(); alert('你的浏览器支持Map和Set!'); Map的操作: ... 阅读全文
posted @ 2015-11-27 14:36 codingcloud 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 高阶函数英文叫Higher-order function,即一个函数的参数也还是一个函数。 例如: function myMethod(a,b,temp){ return temp(a)+temp(b); } //调用该方法 windown.myMethod(4,6,Math.abs);//... 阅读全文
posted @ 2015-11-27 14:36 codingcloud 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 异常信息: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated withthe session 发生原因: 在对一个实体... 阅读全文
posted @ 2015-11-27 14:35 codingcloud 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 异常信息: org.springframework.dao.InvalidDataAccessApiUsageException: The given object has a null identifier: com.blog.entity.PersonalizedSettings; neste... 阅读全文
posted @ 2015-11-27 14:35 codingcloud 阅读(263) 评论(0) 推荐(0) 编辑
摘要: js代码:   HTML代码:   阅读全文
posted @ 2015-11-26 12:03 codingcloud 阅读(312) 评论(0) 推荐(0) 编辑