随笔分类 -  JS

摘要:- checkbox判断选中 阅读全文
posted @ 2016-10-26 14:42 盖瑞 阅读(108) 评论(0) 推荐(0)
摘要:e.stopPropagation();//阻止冒泡 阅读全文
posted @ 2016-10-17 14:36 盖瑞 阅读(88) 评论(0) 推荐(0)
摘要:--刷新页面 阅读全文
posted @ 2016-10-09 14:51 盖瑞 阅读(106) 评论(0) 推荐(0)
摘要:if(confirm("Sure to xxxxxx?")){ xxxxxx; xxxxxx; } 阅读全文
posted @ 2016-10-09 11:28 盖瑞 阅读(162) 评论(0) 推荐(0)
摘要:--遍历数组 --hash数组 阅读全文
posted @ 2016-09-23 15:15 盖瑞 阅读(105) 评论(0) 推荐(0)
摘要:--判断string是否为空 阅读全文
posted @ 2016-09-23 13:55 盖瑞 阅读(137) 评论(0) 推荐(0)
摘要:--实例: 阅读全文
posted @ 2016-09-23 12:58 盖瑞 阅读(130) 评论(0) 推荐(0)
摘要:1. 补充Format函数 // common functionsstart Date.prototype.Format = function(fmt) { //author: meizz var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.ge 阅读全文
posted @ 2016-08-26 12:41 盖瑞 阅读(176) 评论(0) 推荐(0)
摘要:1. 只取数字 replace(/[^0-9]/ig, ""); 阅读全文
posted @ 2016-05-05 15:59 盖瑞 阅读(99) 评论(0) 推荐(0)
摘要:event.stopPropagation(); 阅读全文
posted @ 2016-05-05 15:34 盖瑞 阅读(609) 评论(0) 推荐(0)
摘要:对于append的元素,原有的方法不生效解决:用on方法找到的:http://www.zhidao91.com/jquery-html-live-on/解决使用jQuery采用append添加的元素事件无效的方法2014年09月22日 | jQuery | 浏览: 1,118当我们使用jQuery动... 阅读全文
posted @ 2015-02-15 18:03 盖瑞 阅读(990) 评论(0) 推荐(0)