class Info { constructor() { this.likeList = localStorage.getItem("list") == null ? [] : JSON.parse(localStorage.getItem("list")); this.currentinfo = {}; this.getInfo(); } async getInfo() { var res = await indexService.indexInfo({ url: query("url") }); this.currentinfo = res; $(".list_title h2").innerText = res.title; res.stepInfo.arr.forEach((v) => { $(".setp").innerHTML += `
${v.title}
${v.step_text}
` : `${v.step_text || ''}
` } ${ Array.isArray(v.step_img) ? `