isFinite 函数
确定所提供的数字是否是有限值。
语法
isFinite(number)
备注
必需的number参数是任何数值。
如果number是除NaN、负无穷或正无穷之外的任意值,则isFinite函数将返回true。在这三种情况中,函数返回false。
必备条件
在以下文档模式中受支持:怪异模式、Internet Explorer 6标准模式、Internet Explorer 7标准模式、Internet Explorer 8标准模式、Internet Explorer 9标准模式、Internet Explorer 10标准模式、Internet Explorer 11标准模式。应用商店应用(Windows 8和Windows Phone 8.1)中也受支持。请参阅版本信息。
Applies To: Global Object