大飞_dafei

导航

2021年1月25日 #

运算符 typeof 和 instanceof

摘要: 运算符 typeof 和 instanceof typeof 识别所有值类型 识别函数 判断是否是引用类型(但是不能区分是那种引用类型) (typeof "abc123"); // string (typeof 123); // number (typeof a); // undefined (ty 阅读全文

posted @ 2021-01-25 20:09 大飞_dafei 阅读(109) 评论(0) 推荐(0) 编辑