组建中数据存放问题

上代码

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script src="./js/vue.js"></script>
		<script src="./js/vue.min.js"></script>
		
		<div id="app">
			<weare></weare>
			
		</div>
		<template id="we">
			<h2>{{title}}</h2>
		</template>
	
		<script>
			Vue.component('weare',{
				template:'#we',
				data(){
					return{
						title:'金刚葫芦娃'
					}
				}
			})
	
			const app = new Vue({
				el:"#app",
				data:{
					
				},
				methods:{
					
				}
			})
		</script>
	
	</body>
</html>

你可能感兴趣的:(组建中数据存放问题)