小编JAM*_*LLO的帖子

带 CDN 的 Vuetify 实例不适用于 vuejs3

我在 aspnet mvc 和 import vuejs v3 cdn 上有应用程序,我喜欢使用 vuetify 但我不知道该怎么做。这是我的代码示例

<!DOCTYPE html>
<html lang="en">
<head>
    <title>@ViewData["Title"] - MVCAndVue</title>
    <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet">
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div class="container">
        <main role="main" class="pb-3">
            @RenderBody()
        </main>
    </div>
    @await RenderSectionAsync("Scripts", required: false)
</body>
</html>
<script>
const {
    ref,
    reactive,
} = Vue;
//Define Vue app
const App = {
    data() {
        return {
        };
    },
    methods: {
        
    },
    setup(props, context) {
        
    }
};
// Create new Vue app
const app = Vue.createApp(App);
app.mount("#app");

</script>
Run Code Online (Sandbox Code Playgroud)

cdn vue.js vuetify.js

0
推荐指数
1
解决办法
2652
查看次数

标签 统计

cdn ×1

vue.js ×1

vuetify.js ×1