function isNum(obj) { var keyW=eval("formData."+obj).value if(keyW!="" && keyW.match(/[^\d]/)) { return false; } else { return true; } } 相关文章: