class Utils { constructor() { } query(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; } footer() { var footerList = [ { title: '首页', img: 'icon-home', isActve: true, url: './index.html' }, { title: '机构', img: 'icon-jigou', isActve: false, url: './mechanism.html' }, { title: '模特', img: 'icon-me', isActve: false, url: './model.html' }, { title: '我的', img: 'icon-wo', isActve: true, url: './me.html' }, ]; // 当前访问的页面地址 var currentUrl = location.href.match(/page\/([\s\S]*?).html/)[1] $("body").append(`
`) } item(father, data) { var li = "" data.forEach(v => { li+= `