var test1 = '你好'
var test2 = new Date()
function isDate(data) {
return Object.prototype.toString.call(data)
}
isDate(test1)
isDate(test2)
var result = isDate(test2)
if (result == '[object Date]') {
console.log('I am date')
}