class Info { constructor() { this.getInfo(); } async getInfo() { var res = await server.info({ url: query("url") }); $(".img_hidden img").attr({ src: res.backImg }) $(".list_title h2").text(res.title) $(".posttime").text(res.posttime) $(".list_text p").text(res.stepInfo.message) $(".list_text .more").click(function () { $(".list_text").css({ height: 'auto' }); $(this).hide(); }) res.stepInfo.arr.forEach(v => { $(".ddd").append(`
${v.title}
${v.step_text == null ? "" : v.step_text}
${ Array.isArray(v.step_img) ? `