摘要: 转自 : http://blog.csdn.net/xichenguan/article/details/45512541 阅读全文
posted @ 2017-11-22 15:58 李勇888 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Nothing seek,nothing find. 无所求便无所得 2017-11-22 阅读全文
posted @ 2017-11-22 09:56 李勇888 阅读(100) 评论(0) 推荐(0) 编辑
摘要: $('.aa').on("click", function(){ $(this).addClass('bb'); }); $(document).on('click','.bb',function(){ alert(123); }); // aa的点击事件冒泡到了.bb的点击事件上 待完整... 阅读全文
posted @ 2017-11-16 16:22 李勇888 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Exception in thread "main" java.util.ConcurrentModificationException 并发修改异常引发的思考! ①list遍历删除元素时会报错,比如下面删除字符串"aa",也有遍历不报错的例子,看下面的例子 public class TestMai 阅读全文
posted @ 2017-11-07 15:36 李勇888 阅读(4545) 评论(3) 推荐(1) 编辑
摘要: own -- 获取验证码的按钮function sendVerifyCode(own) { var $this = $(own); //判断此按钮是否被禁用 if ($this.hasClass("am-disabled")) { return; } var phone = $("#phone").val(); $.ajax({ url: "/public/... 阅读全文
posted @ 2017-11-06 15:30 李勇888 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 参考自 : http://www.cnblogs.com/peida/archive/2013/04/24/3036689.html http://www.cnblogs.com/peida/archive/2013/04/26/3038503.html 阅读全文
posted @ 2017-11-06 11:05 李勇888 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 List集合转成json字符串 2 json字符串转成List集合 后续需要复杂的转换在更新..... 阅读全文
posted @ 2017-11-03 09:36 李勇888 阅读(1434) 评论(0) 推荐(0) 编辑
摘要: 例如 : http://localhost:8080/projectName/aaa/bbb?name=zhangsan获取项目名(目录) /projectNameString uri = request.getContextPath(); 获取目录下的全名称 /aaa/bbbString url = request.getServletPath();获取当前页面所在服务器的全路径 d:\aa... 阅读全文
posted @ 2017-10-26 15:34 李勇888 阅读(130) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Set set = new HashSet(); Test t1 = new Test("aaa"); Test t2 = new Test("aaa"); set.add(t1); set.add(t2); System.out.println(set.size()); //我们对于... 阅读全文
posted @ 2017-10-21 09:36 李勇888 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 见知乎 : https://www.zhihu.com/question/66705139 也有大佬的点评 上述代码第21行 : 阅读全文
posted @ 2017-10-18 19:27 李勇888 阅读(421) 评论(0) 推荐(0) 编辑