js 控制不能输入空格

onkeydown="if(event.keyCode==32) return false"

原文地址:https://www.cnblogs.com/imsomnus/p/5943058.html