class Mechanism { constructor() { footer(); header("机构"); this.mechanism() } async mechanism(){ var res = await indexServe.mechanism({}); console.log(res); res.forEach(v => { $(".content_mechanism").innerHTML+=`
  • ${v.title}

    ${v.quantity}
  • ` }); } } new Mechanism()