oletan

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年9月19日

摘要: <inputonkeypress="return /[\w\u4e00-\u9fa5]/.test(String.fromCharCode(window.event.keyCode))" onpaste="return !/[^\w\u4e00-\u9fa5]/g.test(window.clipboardData.getData('Text'))" ondragenter="return false"/> 再粘贴一些别人写的。1.只能输入数字和英文的:<inputonkeyup="valu 阅读全文
posted @ 2011-09-19 19:18 Ole 阅读(954) 评论(0) 推荐(0) 编辑