Vue中将input输入的小写字母转换成大写,并实时显示在input输入框上面
思路:input输入框有个change事件,调用change事件获取到input输入的值,再在$nextTick中调用 toUpperCase方法,将其转换成大写change:({value,column})=>{this.$nextTick(()=>{this.obj.socialCreditCode = value.toUpperCase();}}...
·
思路:input输入框有个change事件,调用change事件获取到input输入的值,再在$nextTick中调用 toUpperCase方法,将其转换成大写
change:({value,column})=>{
this.$nextTick(()=>{
this.obj.socialCreditCode = value.toUpperCase();
}
}
更多推荐
所有评论(0)