摘要:
HTML5 可以用:<input type="number">html4 的话只能用js实现了:<input type="text" onkeyup="this.value=this.value.replace(/\D/g, '')">上面的只能输入整数。如果需要小数正则需要改成:/[^\d\.]/ 阅读全文
posted @ 2018-09-19 09:30
水狼一族
阅读(7759)
评论(1)
推荐(2)
摘要:
package com.shuilangyizu; import java.util.regex.Pattern; import me.chanjar.weixin.common.util.StringUtils; public class IsNumber { public static void 阅读全文
posted @ 2018-09-19 09:21
水狼一族
阅读(2033)
评论(0)
推荐(0)

浙公网安备 33010602011771号