Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: isNaN() 的 JavaScript 逻辑
嘿,我只想检查文本框中输入的值是否不是数字或不使用函数isNaN();。有什么办法吗?
isNaN();
parseFloat(value)!== +value;
但是 isNaN(value) 有什么问题呢?