SOURCE

console 命令行工具 X clear

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

<head>
    <title>Vue.extend 扩展实例构造器</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>

<body>
    <h1>Vue.extend 扩展实例构造器</h1>
    <hr>
    <author></author>

    <script type="text/javascript">
        var authorExtend=Vue.extend({
            template:"<p><a :href='authorUrl'>{{authorName}}</a></p>",
            data() {
                //data()=data:function(){}
                return {
                    authorName:"进击的辣条",
                    authorUrl:"https://www.cnblogs.com/wyt007"
                }
            },
        })

        new authorExtend().$mount('author');
    </script>
</body>

</html>

本项目引用的自定义外部资源