摘要: 1. typeof 和 instanceOf 判断基本类型,用 typeof 判断复杂类型, 用 instanceof instanceOf需要注意的是: instanceof在判断基本类型时,不是用 new 声明的类型会判断为false 如: 4 instanceOf Number 结果是fals 阅读全文
posted @ 2020-09-01 15:03 StackOcean 阅读(158) 评论(0) 推荐(0) 编辑