2024年8月28日
摘要: 判断JS类型,有以下几种方法: typeof :可以判断基本类型,如:number,string,boolen、symbol、undefined、null等 2. instance of:只能用来判断复杂数据类型,如:数组,方法,对象等 object.prototype.toString.call: 阅读全文
posted @ 2024-08-28 00:06 W-阿飞 阅读(2) 评论(0) 推荐(0) 编辑