摘要: <html> <meta charset="utf-8" /> <body>只允许输入正整数: <input type='text' onkeyup="this.value=this.value.replace(/^(0+)|[^\d]+/g,'')"> <br/> <br/>只允许输入英文: <i 阅读全文
posted @ 2021-03-10 08:58 诡道也 阅读(0) 评论(0) 推荐(0) 编辑
摘要: <body>只允许输入正整数: <input type='text' onkeyup="this.value=this.value.replace(/^(0+)|[^\d]+/g,'')"> <br/> <br/>只允许输入英文: <input type="text" onkeyup="this.v 阅读全文
posted @ 2021-03-10 08:56 诡道也 阅读(31) 评论(0) 推荐(0) 编辑