Date.prototype.isDate = function (){. return (this !== "Invalid Date" && !isNaN(this)) ? true : false;. } new Date().isDate() // true.
確定! 回上一頁