[Solved] why can i not call a function of my vue component in my callback [closed]


Your issue is lexical scoping. the callback method you’re provided is an anonymous function which redeclares the value of this. To solve it, use a fat arrow.

$("#tbl tbody").on("click", "tr", () => {
  this.ddd();
});

1

solved why can i not call a function of my vue component in my callback [closed]