2017年9月1日
摘要: 1.筛选器做左侧菜单实例 筛选器如下: 2. 两行可以并成一行,jquery 支持链式编程。 $(this).next().removeClass('hide').parent().siblings().find('.content').addClass('hide') 阅读全文
posted @ 2017-09-01 17:03 momo8238 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1. $('#tb:checkbox').each(function(){ 每次都会执行 全选-取消操作,注意$('#tb :checkbox').prop('checked',true); tb后面一定得有括号,否则会报错。 用DOM实现 全选-反选-取消操作: 效果: 2.用 jQuery实现 阅读全文
posted @ 2017-09-01 15:49 momo8238 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 一 .模块也就是类库,不同叫法。DOM/BOM/Javascript的类库。jQuery选择器的网址:http://jquery.cuishifeng.cn/ 其实jQuery封装的就是DOM。 http://jquery.com/download/ https://code.jquery.com/ 阅读全文
posted @ 2017-09-01 10:54 momo8238 阅读(203) 评论(0) 推荐(0) 编辑