<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <!--  <cpn>
        <h2>我是标题</h2>
    </cpn> -->
    <div id="app">
        <cpn1></cpn1>
        <cpn2></cpn2>
    </div>
    <script src="./js/vue.js">
    </script>
    <script>
        const conc1 = Vue.extend({
            template: `<div><h2>我是标题1子</h2></div>`
        })
        const conc2 = Vue.extend({
                template: `<div><h2>我是标题2父亲</h2><cpn1></cpn1></div>
                `,
                components: {
                    cpn1: conc1,

                }

            })
            /* 全局组件 */
            //Vue.component('my-cpn', conc)

        const app = new Vue({
            el: '#app',
            data: {
                message: 'geyao',
                age: ''
            },
            components: {
                cpn1: conc1,
                cpn2: conc2,
            }

        })
    </script>
</body>

</html>

运行结果