isFinite() -- 检查其参数是否是无穷大
isFinite( number );
number -- 要检测的数字
console.log( isFinite( 7 ) ); console.log( isFinite( NaN ) ); console.log( isFinite( Infinity ) );
>>> true false false