去除v-model中的首尾空格可以使用.trim修饰符

<input type = "text" v-model.trim="message">
Logo

前往低代码交流专区

更多推荐