Skip to content

Instantly share code, notes, and snippets.

@xjinza
Last active September 6, 2017 12:53
Show Gist options
  • Save xjinza/9964889974bd281dd85424c273f0b6b6 to your computer and use it in GitHub Desktop.
Save xjinza/9964889974bd281dd85424c273f0b6b6 to your computer and use it in GitHub Desktop.
js判断是否数字
function isNumeric( obj ) {
return (obj - parseFloat( obj ) + 1) >= 0;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment