Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript | gauhar's blog #4

Open
GauharChan opened this issue Sep 3, 2019 · 1 comment
Open

JavaScript | gauhar's blog #4

GauharChan opened this issue Sep 3, 2019 · 1 comment

Comments

@GauharChan
Copy link
Owner

https://gauhar.gitee.io/2019/09/03/js%E7%AC%94%E8%AE%B0/

JavaScriptisNaN() isNaN() 函数用于检查其参数是否是非数字值。 如果参数值为 NaN 或字符串、对象、undefined等非数字值则返回 true, 否则返回 false。 如果参数是字符串,且内容是数字,会进行类型转换,使用的是Number()方法转换,转换为数字,所以返回false 0是false,1是true 1、数字形式的字符串。例如 “123”、”-3.14”

@stanlz06
Copy link

强啊 华哥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants