class MechanismInfo { constructor () { // 设置标题栏文字 utils.SetHeaderTitle(utils.GetQueryString("t")) this.GetMechanismInfo() } async GetMechanismInfo() { var res = [] if (utils.GetQueryString("type") == "tags") { res = await homeService.classList({ page: 0, id: utils.GetQueryString("id") }) } else { res = await homeService.mechanismList({ page: 0, id: utils.GetQueryString("id") }) } console.log(res); res.data.forEach(v => { document.querySelector(".jglist ul").innerHTML+= `