摘要: 代码: function isNormalInteger(str) { var n = Math.floor(Number(str)); return n !== Infinity && String(n) str && n >= 0; } 阅读全文