Object.prototype.toString.call()

 

为什么要用这种方法呢?

答:因为, 只用typeof的话会有这种操作。

 

posted @ 2018-11-15 15:29  hh9515  阅读(146)  评论(0编辑  收藏  举报