You can check the type and the instance of an object this way: var a = new Date(); console.log(typeof a); console.log(a instanceof Date); var b = "Hello"; ...
確定! 回上一頁