input禁止输入空格

oninput="value=value.replace(/\s*/g,'')" ios不兼容,中文输入会出现一大堆字母
posted @ 2022-09-20 14:09  CTRL搬运工  阅读(196)  评论(0编辑  收藏  举报