This commit is contained in:
Code12121 2022-10-20 19:24:55 +08:00
parent 0b89c426d7
commit 07f040aea2
1 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,43 @@
<!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="app">
<scp></scp>
</div>
<div id="asp">
<asps></asps>
</div>
</body>
<script src="../../JavaScript/vue.js"></script>
<script>
// 全局注册组件
Vue.component(
'scp',{
template:`
<h1>你好Vue</h1>
`
}
)
const vue=new Vue({
el:"#app"
})
const asp=new Vue({
el:"#asp",
components:{
'asps':{
template:`
<div>
<h1>asp标签</h1>
</div>
`
}
}
})
</script>
</html>