How to get list of registered custom elements

前端 未结 7 526
萌比男神i
萌比男神i 2020-12-08 09:55

I\'m trying to detect whether a custom element with a specific name was registered or not. Is there a way to make such check?

Or is there a way to get list of regist

7条回答
  •  萌比男神i
    2020-12-08 10:24

    in scenarios where custom element classes (constructors) self-register an element, it is sufficient to check for the presence of the class

提交回复
热议问题