Blogger Information
Blog 35
fans 0
comment 0
visits 16742
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
声明组件与子组件
手机用户311660634
Original
326 people have browsed it
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>声明组件与子组件</title>
  8. </head>
  9. <body>
  10. <!-- 挂载点 -->
  11. <div id="app">
  12. <!-- 组件挂载 -->
  13. <daddy />
  14. </div>
  15. <script>
  16. // 应用实例
  17. const app = Vue.createApp({}).mount('#app')
  18. // 全局组件,父组件
  19. app.component('daddy', {
  20. })
  21. // 声明子组件
  22. component:{
  23. }
  24. </script>
  25. </body>
  26. </html>
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post