In ES6, the next version of Javascript, there will be a function exactly for this purpose called Number.isInteger() . Currently, MDN offers the following ...
確定! 回上一頁