输入框禁止输入空格2019-04-23 本文已影响0人 东方欲晓_莫道君行早 <input type="text" onkeyup="this.value=this.value.replace(/\s+/g,'')">