//输入框禁止输入空格 $('input').on('keypress',function () { if(event.keyCode == 32)event.returnValue = false; })
另副图一张:
------------
------------
----------
//输入框禁止输入空格 $('input').on('keypress',function () { if(event.keyCode == 32)event.returnValue = false; })
另副图一张:
------------
------------
----------
转载于:https://www.cnblogs.com/q460021417/p/6020286.html