禁止输入框输入空格

禁止代码

onkeyup=”value=value.replace(/\s/g,”)”

案例

<input path=”name” id=”name” maxLength=”30″ onkeyup=”value=value.replace(/\s/g,”)”/>

点赞