<!doctype html><html lang="en"><head><meta charset="UTF-8"><title>禁止输入空格键</title><script src="/jquery/1.11.3/jquery.min.js"></script></head><body><input type="text" /></body><script>$('input').keydown(function(e) {if (e.keyCode == 32) {return false;}});</script></html>
200字范文,内容丰富有趣,生活中的好帮手!