vue输入框特殊字符过滤

val = val.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\w]/g, '').trim()
posted @ 2022-12-06 22:19  轻风细雨_林木木  阅读(8)  评论(0编辑  收藏  举报