class Mechanism { constructor() { this.mechanism() } async mechanism () { var res = await mechanismService.mechanism(); console.log(res) for (let index in res) { // console.log(index) // console.log(res[index]) // console.log(res[index].title) $(".mechanism_list").append( `
  • ${res[index].title}

    ${res[index].quantity}
  • ` ) } } } new Mechanism();