当前位置:首页/全生物降解系列

彩色母料

产品种类多样,适用范围广泛,可满足客户的不同需求

共5条
电话咨询:400-966-8818
½“前页,也可以同上(pages)方式获取 console.log('0') if (weijingtai == 0||'0'==1) { var page = location.search.match(/page=(\d+)/); return page ? page[1] : 1; } else { if ("0" == 1) { let arr = window.location.pathname.split('/'); let page = arr[arr.length - 1]; return page; } else { return 1; } } }(), jump: function(e, first) { //触发分页后的回调 if(ishtml==1){ var i = e.curr - 1; $("[name = doclist]").html('');//初始化 console.log(e.curr,i*pagesize,(i+1)*pagesize); $("[name = doclist]").html(arr.slice(i*pagesize,(i+1)*pagesize)); }else{ if (!first) { //一定要加此判断,否则初始时会无限刷新 replaceParamVal("page", e.curr) } } } }) function replaceParamVal(paramName, replaceWith) { if (weijingtai == 0||'0'==1) { var reg = new RegExp("(^|&)" + paramName + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) { var oUrl = this.location.href.toString(); var re = eval('/(' + paramName + '=)([^&]*)/gi'); var nUrl = oUrl.replace(re, paramName + '=' + replaceWith); this.location = nUrl; window.location.href = nUrl } else { if(this.location.href.indexOf('?') != -1){ window.location.href = location.href + '&page=' + replaceWith; }else{ window.location.href = location.href + '?page=' + replaceWith; } } } else { let shit = window.location.href.split('?')[1]; let noshit = location.href.split('?')[0]; if ("0" == 1) { let arr = window.location.pathname.split('/'); arr[arr.length - 1] = replaceWith; let url = arr.join('/'); url += '?'+shit; window.location.href = url; } else { window.location.href = noshit + '/' + replaceWith + '?'+shit; } } }
电话咨询:400-966-8818