摘要: instanceof和typeof的区别 1.typeof:可以用来确定一个变量的数据类型 2.instanceof:可以用来确定一个引用类型值的是什么类型的对象 typeof用以获取一个变量的类型,typeof一般只能返回如下几个结 果:number,boolean,string,function 阅读全文
posted @ 2024-03-08 15:29 hello芳芳 阅读(66) 评论(0) 推荐(0) 编辑