js检测类型

1. typeof 检测基本类型java null undefined string number boolean symbol Note: typeof null返回 “object” 检测函数时,返回 “function”web 2. instanceof 检测引用类型 原理:原型链svg function myinstanceof(L,R){ var l=L.__proto__, o=
相关文章
相关标签/搜索