How can Vue.js add content to the template?

add content to the template, in addition to displaying the application of components, such as:

<template>
  <div>
    <child-component :data="data"></child-component>
  </div>
</template>

if you add components in this way, you can add template content. Is there any other way?

Feb.28,2021

take a look at the rendering function on the official website & JSX
ide/render-function.html" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.


  1. the beginning of the life cycle uses the native js operation dom to insert
  2. leverage subcomponents
  3. render function
  4. use solot
Menu