js 判断object的类型

var b = new Date();

if (b instanceof Date)

{...}

posted @ 2016-02-25 15:55  ceinx阿赖耶识  阅读(400)  评论(0)    收藏  举报