摘要: JavaScript有4种方法判断变量的类型,分别是:typeof、instanceof、Object.prototype.toString.call()(对象原型链判断方法)、 constructor (用于引用数据类型) typeof:常用于判断基本数据类型,对于引用数据类型除了function 阅读全文
posted @ 2022-09-13 11:08 CodeFan* 阅读(100) 评论(0) 推荐(0) 编辑