class Mechanism { constructor () { this.GetMechanismList() } async GetMechanismList() { var res = await homeService.mechanism({}); console.log(res); var Li = document.querySelector(".mechanism_list"); res.forEach(v => { Li.innerHTML+=`
  • ${v.title}

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