Quickly test vue files in HTML

Just introduce the vue file in httpVueLoader()

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>陰陽-快速测试vue文件</title>
        <script src="https://unpkg.com/vue"></script>
        <script src="https://unpkg.com/http-vue-loader"></script>
    </head>
    <body>
        <div id="GM"><index/></div>
        <script type="text/javascript">
            var GM =new Vue({
     
     
                el: '#GM',
                components: {
     
     'index': httpVueLoader('./pages/index.vue')},
            })
        </script>
    </body>
</html>

GM

Guess you like

Origin blog.csdn.net/u010100877/article/details/118227665