Vue双向绑定v-model修饰器

.lazy -> 失去焦点生效;

.number -> 限定输入类型为number;

.trim -> 清除开头结尾的空格。

trim修饰器不能删除输入框内字符串中间部分的空格,这种需求可以用正则实现。

原文地址:https://www.cnblogs.com/atao24/p/15219255.html