javascript当中isNaN用法
例 4.2.1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
/*favo说isNaN是Global的方法, 而不是window的方法*/
var b1 = window.isNaN("25");
var b2 = isNaN("abc");
document.write("b1="+b1+",b2="+b2)
//-->
</SCRIPT>
</BODY>
</HTML>
输出结果:
b1=false,b2=true