ITeye博客

JS 只输入数字

maxwell · 2008-10-13 13:50 · web · Markdown

<input onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。