0👍
✅
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();
});
Source:stackexchange.com