我在 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)