How do I get the id of a HTML element in my custom element in javascript?

后端 未结 0 1161

My custom element looks like this:

class item extends HTMLElement {
  constructor() {
    super()

    const shadow = this.attachShadow({mode: \'open\'});

    co         


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