javaScript

输入框禁止输入空格

2019-04-23  本文已影响0人  东方欲晓_莫道君行早

<input type="text" onkeyup="this.value=this.value.replace(/\s+/g,'')">

上一篇下一篇

猜你喜欢

热点阅读