JS判断文本框是否数字包括小数

onkeyup="if(isNaN(value))this.value=''"

原文地址:https://www.cnblogs.com/rmhy/p/9329514.html