uniapp 六位数密码输入框
时间: 2023-10-24 19:06:38 浏览: 255
可以使用uni-app自带的input组件,设置type为password,同时设置maxlength为6即可实现六位数密码输入框。
示例代码如下:
```
<template>
<view>
<input type="password" maxlength="6" v-model="password" />
</view>
</template>
<script>
export default {
data() {
return {
password: ''
}
}
}
</script>
```
阅读全文
相关推荐










