随笔分类 -  js ,jq

摘要:/** * 获取url中得参数 * @param name * @returns {null} */ window.getQueryString = function (name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.su... 阅读全文
posted @ 2018-01-18 15:31 盘思动 阅读(5280) 评论(0) 推荐(0) 编辑
摘要:// var is_rec =$("#is_rec_on").is(':checked'); //判断radio是否选中,该属性会随着radio被切换点击而变化 // if(is_rec){ // $('.rec_img').css('display','block'); // }else{ // $('... 阅读全文
posted @ 2018-01-13 11:08 盘思动 阅读(374) 评论(0) 推荐(0) 编辑
摘要:投保人数: 人 投保方案: 方案一 方案二 ... 阅读全文
posted @ 2018-01-12 22:02 盘思动 阅读(134) 评论(0) 推荐(0) 编辑
摘要:let url = window.location.href; let id = url.slice(url.indexOf('?') + 4); 阅读全文
posted @ 2018-01-12 14:55 盘思动 阅读(2081) 评论(0) 推荐(0) 编辑
摘要:var is_rec =$("#is_rec_on").is(':checked'); if(is_rec){ $('.rec_img').css('display','block'); }else{ $('.rec_img').css('display','none'); } ... 阅读全文
posted @ 2018-01-08 17:21 盘思动 阅读(254) 评论(0) 推荐(0) 编辑
摘要:http://www.jq22.com/jquery-info8054 阅读全文
posted @ 2018-01-04 14:06 盘思动 阅读(128) 评论(0) 推荐(0) 编辑
摘要:这是标题 第一个段落。 第二个段落。 第三个段落。 第四个段落。 第五个段落。 阅读全文
posted @ 2017-12-26 14:50 盘思动 阅读(332) 评论(0) 推荐(0) 编辑
摘要:注意:引号一定是双引号 想要这种格式{"userId":3,"productList":[{"productId":1157,"quantity":3},{"productId":1158,"quantity":1}]} 阅读全文
posted @ 2017-12-22 14:47 盘思动 阅读(7312) 评论(0) 推荐(0) 编辑
摘要:https://github.com/zhoushengmufc/iosselect 阅读全文
posted @ 2017-12-09 14:33 盘思动 阅读(223) 评论(0) 推荐(0) 编辑
摘要:if (_this.hasClass('default_btn_is')){ _this.removeClass('default_btn_is'); _this.addClass('default_btn_not'); _this.data('val',0); console.log(_this.data('val'));... 阅读全文
posted @ 2017-12-09 11:35 盘思动 阅读(4117) 评论(0) 推荐(0) 编辑
摘要:https://demo.mobiscroll.com/jquery/list/treelist#theme=ios官网的代码是要钱的,百度云放了一份 阅读全文
posted @ 2017-12-07 17:16 盘思动 阅读(458) 评论(0) 推荐(0) 编辑
摘要:h5本地存储localStorage,sessionStorage。 localStorage是没有失效时间的,sessionStorage的声明周期是浏览器的生命周期。 当浏览器关闭时,sessionStorage的数据将清空,而localStorage数据只要不通过代码特意的删除或手动删除,是永久保存的。 删除方法:localStorage.clear(); 下边是我写的一个小测试,里边有... 阅读全文
posted @ 2017-12-04 20:22 盘思动 阅读(26229) 评论(0) 推荐(1) 编辑
摘要:$(".meun>div[name='meun_nav']>a").eq(1).on("click",function(){ $("body").animatescroll({ "scrollSpeed":400, "easing":"easeInOutQuart", "padding": -asideTop, }); }); ... 阅读全文
posted @ 2017-11-01 15:39 盘思动 阅读(712) 评论(0) 推荐(0) 编辑
摘要://点击左边全选选中时,都全选$('.goods_tag_ids_all').on('click',function(){ if($('.goods_tag_ids_all').is(':checked')){ var elements = $('.goods_tag_ids'); for(var 阅读全文
posted @ 2017-10-25 21:44 盘思动 阅读(502) 评论(0) 推荐(0) 编辑
摘要:isNaN 返回一个 Boolean 值,指明提供的值是否是保留值 NaN (不是数字)。 NaN 即 Not a Number isNaN(numValue) 必选项 numvalue 参数为要检查是否为 NAN 的值。 说明 假如值是 NaN, 那么 isNaN 函数返回 true ,否则返回 阅读全文
posted @ 2017-09-14 17:22 盘思动 阅读(389) 评论(0) 推荐(0) 编辑
摘要:reload="1",为append的值。添加到页面,同样会执行其中的src的链接reload。~~~~ 不同页面刷新的一种方法,可以用于登录拦截~~~~ $.ajax({ type:"POST", url:"/index.php/Public/checklogin/", dataType:"json", ... 阅读全文
posted @ 2017-08-25 14:57 盘思动 阅读(286) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示