constructor 属性

可以使用constructor 属性来判断数据是什么类型

"John".constructor                 // 返回函数 String()

猜你喜欢

转载自www.cnblogs.com/ielse/p/9389473.html
今日推荐