Home>Article>Web Front-end> jquery method to determine whether it is a number
The jquery method to determine whether it is a number: first create a front-end code sample file; then use the "if(!isNaN(t)){...}" method to determine whether it is a number; finally output the judgment result: Can.
The operating environment of this tutorial: Windows 7 system, jquery version 1.10.0. This method is suitable for all brands of computers.
Recommended: "jquery Tutorial"
jQuery method to determine whether it is a number and convert number function
Attachment:
JavaScript Number() function
Number() function converts the value of the object into a number.
Output
1 0 1256657776588 999 NaN
For more programming-related knowledge, please visit:Programming Learning! !
The above is the detailed content of jquery method to determine whether it is a number. For more information, please follow other related articles on the PHP Chinese website!