随笔分类 -  jquery

摘要:$this.closest("dd").addClass("selected").siblings().removeClass("selected"); 阅读全文
posted @ 2016-06-27 14:57 #料 阅读(108) 评论(0) 推荐(0)
摘要:引入:<script type="text/javascript" src="${base}/resources/shop/js/jquery.jqzoom.js"></script> // 商品图片放大镜$zoom.jqzoom({ zoomWidth: 368, zoomHeight: 368, 阅读全文
posted @ 2016-06-27 11:09 #料 阅读(159) 评论(0) 推荐(0)
摘要:引入:<script type="text/javascript" src="${base}/resources/shop/js/jquery.lazyload.js"></script>var $logo = $("#list img"); $logo.lazyload({ threshold: 阅读全文
posted @ 2016-06-27 10:43 #料 阅读(273) 评论(0) 推荐(0)
摘要:<div class='flo_left'> <h2 class='red'>订货价¥${productEntity.agentsPrice}</h2> <h4 class='gray_9' style="text-decoration: line-through;">零售价¥${productEn 阅读全文
posted @ 2016-05-25 17:51 #料 阅读(267) 评论(0) 推荐(0)
摘要:public String findByAdvertisementSpaceList(@RequestBody AdvertisementDtoIn advertisementDtoIn,HttpServletRequest request){ String contextPath = reques 阅读全文
posted @ 2016-05-25 17:12 #料 阅读(139) 评论(0) 推荐(0)
摘要:checkedData.push(record); 直接在record 这个数组后面添加;var index =jQuery.inArray(record,checkedData);// 获取index 的位置checkedData.splice(index,1); // 从index位置删除1个$... 阅读全文
posted @ 2015-08-26 16:18 #料 阅读(359) 评论(0) 推荐(1)
摘要:官方例举的例子感觉和attr()差不多,也不知道有什么区别,既然有了prop()这个新方法,不可能没用吧,那什么时候该用attr(),什么时候该用prop()呢jquery1.6中新加了一个方法prop(),一直没用过它,官方解释只有一句话:获取在匹配的元素集中的第一个元素的属性值。大家都知道有的浏... 阅读全文
posted @ 2015-08-26 15:53 #料 阅读(125) 评论(0) 推荐(0)
摘要:当IT民工测试时,质管部门比较懒时,用360记住了用户名和密码时,360会根据当前页面的username及password 进行填充,为了避免这个问题,在页面添加两句话就可以了问题就解决了 阅读全文
posted @ 2015-07-15 15:14 #料 阅读(151) 评论(0) 推荐(0)
摘要:刚刚360浏览器提示 Uncaught TypeError: object is not a function,找了半天发现问题是我有一个按钮,id和方法重复了,所以提示这个。分配onclick的scores()这个方法与input的name 名字重复这样写会导致错误。 阅读全文
posted @ 2015-07-15 15:05 #料 阅读(1591) 评论(0) 推荐(1)
摘要:1、项目下载地址:http://plugins.jquery.com/validation/2、引入3.使 form表单的某个属性validate失效4.$("#address").rules("remove", "required");5.将validate 验证正常6.将validate 验证失... 阅读全文
posted @ 2015-06-24 19:07 #料 阅读(245) 评论(0) 推荐(1)