文本框失去焦點後js判斷輸入是否爲數字

<html> <head> <title>文本框失去焦點後js判斷輸入是否爲數字</title> <script type="text/javascript"> function ischeckNum() { var num = document.getElementById('isnum').value; if( num ) { if( !isNaN( num ) ) { alert('是數字'
相關文章
相關標籤/搜索