1.typeof 2.Object.prototype.toString.call()(最准确的判断类型的方法,推荐使用) Object.prototype.toString.call(‘hello’) //string