随笔分类 - js ,jq
摘要:/** * 获取url中得参数 * @param name * @returns {null} */ window.getQueryString = function (name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.su...
阅读全文
摘要:// var is_rec =$("#is_rec_on").is(':checked'); //判断radio是否选中,该属性会随着radio被切换点击而变化 // if(is_rec){ // $('.rec_img').css('display','block'); // }else{ // $('...
阅读全文
摘要:let url = window.location.href; let id = url.slice(url.indexOf('?') + 4);
阅读全文
摘要:var is_rec =$("#is_rec_on").is(':checked'); if(is_rec){ $('.rec_img').css('display','block'); }else{ $('.rec_img').css('display','none'); } ...
阅读全文
摘要:http://www.jq22.com/jquery-info8054
阅读全文
摘要:这是标题 第一个段落。 第二个段落。 第三个段落。 第四个段落。 第五个段落。
阅读全文
摘要:注意:引号一定是双引号 想要这种格式{"userId":3,"productList":[{"productId":1157,"quantity":3},{"productId":1158,"quantity":1}]}
阅读全文
摘要:https://github.com/zhoushengmufc/iosselect
阅读全文
摘要: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'));...
阅读全文
摘要:https://demo.mobiscroll.com/jquery/list/treelist#theme=ios官网的代码是要钱的,百度云放了一份
阅读全文
摘要:h5本地存储localStorage,sessionStorage。 localStorage是没有失效时间的,sessionStorage的声明周期是浏览器的生命周期。 当浏览器关闭时,sessionStorage的数据将清空,而localStorage数据只要不通过代码特意的删除或手动删除,是永久保存的。 删除方法:localStorage.clear(); 下边是我写的一个小测试,里边有...
阅读全文
摘要:$(".meun>div[name='meun_nav']>a").eq(1).on("click",function(){ $("body").animatescroll({ "scrollSpeed":400, "easing":"easeInOutQuart", "padding": -asideTop, }); }); ...
阅读全文
摘要://点击左边全选选中时,都全选$('.goods_tag_ids_all').on('click',function(){ if($('.goods_tag_ids_all').is(':checked')){ var elements = $('.goods_tag_ids'); for(var
阅读全文
摘要:isNaN 返回一个 Boolean 值,指明提供的值是否是保留值 NaN (不是数字)。 NaN 即 Not a Number isNaN(numValue) 必选项 numvalue 参数为要检查是否为 NAN 的值。 说明 假如值是 NaN, 那么 isNaN 函数返回 true ,否则返回
阅读全文
摘要:reload="1",为append的值。添加到页面,同样会执行其中的src的链接reload。~~~~ 不同页面刷新的一种方法,可以用于登录拦截~~~~ $.ajax({ type:"POST", url:"/index.php/Public/checklogin/", dataType:"json", ...
阅读全文