search

Home  >  Q&A  >  body text

html5 - html componentization, using native components to implement components similar to vue and angular

For example, I have a button that consists of several p's. This part is universal. I want to combine them into a custom label so that I can pass something like <my-label data-value=""> Call it in the form of </my-label>. How to extract it into components (use native html, js).

You can ask for advice, address, or how to do anything. Welcome

过去多啦不再A梦过去多啦不再A梦2755 days ago941

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-06-24 09:46:09

    What you need may be Web Components

    reply
    0
  • Cancelreply