<template>
<view class="container">
输入数字<input type="number" maxlength="5" v-model="showValue" />
后台数值:{{showValue}}
<button @click="submit">提交</button>
</view>
</template>
<script>
export default {
data() {
return {
showValue:'',
}
},
methods: {
submit(){
console.log(this.showValue);
}
}
}
</script>