35 lines
889 B
HTML
35 lines
889 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<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>Document</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="home">
|
|
<h1>{{title}}</h1>
|
|
<div>
|
|
<button>xxxx</button>
|
|
</div>
|
|
</div>
|
|
<!-- 引入vue和elementd的库 -->
|
|
<script src="./vue/dist/vue_3.js"></script>
|
|
<script type="module">
|
|
// import Vue from './vue/dist/vue.esm-browser.js'
|
|
// import ElementUI from './element-ui/lib/index.js'
|
|
// vue 通过 Vue.createApp(选项)创建vue实例
|
|
const HomeApp = Vue.createApp({
|
|
data() {
|
|
return {
|
|
title: 'test vue'
|
|
}
|
|
}
|
|
})
|
|
HomeApp.mount('#home');
|
|
</script>
|
|
</body>
|
|
|
|
</html> |