Object.prototype.toString.call
摘要:
我们都知道Object.prototype.toString.call可以用来判断变量的类型,在这之前我们可以使用typeof来简单的判断 typeof '123' // string typeof 123 // number typeof undefined // undefined typeof 阅读全文
posted @ 2021-12-04 17:52
smallpen
阅读(840)
评论(0)
推荐(0)