<template>
<div>
<h2>{{messagea}}</h2>
<button @click="btnClicka">按钮</button>
<h2>{{namea}}</h2>
</div>
</template>
<script>
export default {
name: "DEMO",
data(){
return {
messagea: "hello Vue DEMO",
namea: "STZG DEMO"
};
},
methods:{
btnClicka(){
}
}
}
</script>
<style scoped>
button{
color: greenyellow;
}
</style>
Vue——组件化开发DEMO
猜你喜欢
转载自blog.csdn.net/weixin_43272781/article/details/104083356
今日推荐
周排行