99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

jQuery.isNumeric(value)

2018-02-24 15:15 更新

返回值:BooleanjQuery.isNumeric(value)

概述

確定它的參數(shù)是否是一個數(shù)字。

$.isNumeric() 方法檢查它的參數(shù)是否代表一個數(shù)值。如果是這樣,它返回 true。否則,它返回false。該參數(shù)可以是任何類型的

參數(shù)

**value**V1.7

用于測試的值。

示例

描述:

Sample return values of $.isNumeric with various inputs.

jQuery 代碼:

$.isNumeric("-10");  // true
$.isNumeric(16);     // true
$.isNumeric(0xFF);   // true
$.isNumeric("0xFF"); // true
$.isNumeric("8e5");  // true (exponential notation string)
$.isNumeric(3.1415); // true
$.isNumeric(+10);    // true
$.isNumeric(0144);   // true (octal integer literal)
$.isNumeric("");     // false
$.isNumeric({});     // false (empty object)
$.isNumeric(NaN);    // false
$.isNumeric(null);   // false
$.isNumeric(true);   // false
$.isNumeric(Infinity); // false
$.isNumeric(undefined); // false
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號