不過目前JS沒有內建的函式來判斷一個數字是否為包含小數的數字: Number. ... function isNumber(val) { // negative or positive return /^[-]?[\.
確定! 回上一頁