class Utils { $(className) { return document.querySelector(className); } _(className) { return document.querySelectorAll(className); } query(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return decodeURI(r[2]); return null; } footer () { var arr = [ { text: '首页', icon: 'icon-home', href: 'index.html' }, { text: '机构', icon: 'icon-jigou', href: 'mechanism.html' }, { text: '模特', icon: 'icon-me', href: 'model.html' }, { text: '我的', icon: 'icon-wo', href: 'my.html' }, ]; var liArr = `
` $("body").innerHTML += liArr } item(father, arr) { arr.forEach(v => { father.innerHTML += ` ` }) } header(title = "",rightHtml = "") { $("body").innerHTML += `