<template>
? <div class="hello">
? ? <h1>{{msg }}</h1>
? ? ? 我姓{(diào){money}}, 名{{h}}, 全名叫{{s}}
</div>
</template>
<script>
export default {
name:'HelloWorld',
? props: {
msg: String
},
? data () {
return {
? ? ? money:'谷',
? ? ? h:'文超'
? ? }
},
? computed: {
s:function () {
return this.money +this.h
? ? }
}
}
</script>
<style scoped>
h1, h2 {
font-weight:normal;
}
ul {
list-style-type:none;
? padding:0;
}
li {
display:inline-block;
? margin:0 10px;
}
a {
color:#42b983;
}
</style>