首页 > 其他 > 详细

isNaN()

时间:2020-01-18 09:45:44      阅读:80      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>无标题文档</title>

 

<script>

 

// NaN:not a number 不是个 数字 的 数字类型

// isNaN:Is not a number 是不是不是一个数字(不是数字)

 

isNaN(); // true false

// 判断某些值是不是数字

// 不喜欢数字、讨厌数字

 

// alert( isNaN( function(){ alert(1) } ) );

// alert( isNaN(‘250‘) );

// Number() ‘250‘ => 250 => false

 

// alert( isNaN( [] ) );

 

</script>

 

</head>

 

<body>

</body>

</html>

isNaN()

原文:https://www.cnblogs.com/tongguilin/p/12208126.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!