JavaScript classes, is it a bad practice to add an event listener like this?

前端 未结 0 2007
忘掉有多难
忘掉有多难 2021-01-18 23:46

I\'m dynamically creating and rendering div tag using a JS Class, like this (sorry for the huge chunk):

class CreateNote {
  constructor(title, body) {
    th         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题