<input type="text" name="name" v-model="userAddress.name" placeholder-class="corf6"
class=" flex-1 bs-bb" placeholder="名字">
watch: {
'userAddress.name': {
handler(n) {
if (n.length > 5) {
setTimeout(() => {
this.userAddress.name = this.userAddress.name.substr(0, 5)
}, 0)
}
},
},
},
解决uniapp微信小程序,input框设置了maxlength时,ios在输入时拼音达到了最大长度导致无法继续输入问题;
最新推荐文章于 2025-03-11 10:43:57 发布