美文网首页
typeof 2021-07-08

typeof 2021-07-08

作者: 追逐繁星的阿忠 | 来源:发表于2021-07-08 11:08 被阅读0次

typeof: 返回的是一个字符串,字符串用来说明类型,返回的结果有number,boolean,string,function(函数),object(Null,数组,对象),undefined,Null

instanceof: 判断A instanceof B A是否为B的实例对象 返回的是bool类型: true false

image.png

相关文章

网友评论

      本文标题:typeof 2021-07-08

      本文链接:https://www.haomeiwen.com/subject/jlnzultx.html