更新 'vue搭建.md'

增加提示
main
huangzhonghui 3 years ago
parent c256341108
commit d1eb62e476

@ -283,7 +283,9 @@
}, },
methods:{ methods:{
getVaule(){ getVaule(){
#$refs取值
console.log('这是ref获取的值'+this.$refs.input.value) console.log('这是ref获取的值'+this.$refs.input.value)
#通过this去访问data中的数据
console.log('通过this去定义好的值'+this.input) console.log('通过this去定义好的值'+this.input)
} }
} }

Loading…
Cancel
Save