Skip to content
🧸陈欣健的博客
Search
K
Main Navigation
Home
Frontend
Backend
Appearance
Menu
返回顶部
On this page
前端最佳实践-类型检测
typeof
instanceof
constructor
js
const
num
=
1
;
console.
log
(Object.
getPrototypeOf
(num).
constructor
===
Number);
// true
1
2
Object.prototype.toString