其他分享
首页 > 其他分享> > Vue3 如何使用(01)

Vue3 如何使用(01)

作者:互联网

【第一步】先写一个测试,hello world

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>yma</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id = "root"></div>
</body>
<script>
    Vue.createApp({
        template:'<div>hello</div>'
    }).mount('#root');


</script>
</html>

效果如下

【原理】

标签:01,createApp,mount,如何,Vue,template,Vue3,hello
来源: https://blog.csdn.net/u014157897/article/details/115364270