这个练习题答案 好像缺少了对包装类型的考虑?是吗?
感觉function typeOf(ele)里面应该加上3个包装类型:
ele instanceof String
ele instanceof Boolean
ele instanceof Number
因为这三种包装类型 在使用typeof 时会返回object
感觉function typeOf(ele)里面应该加上3个包装类型:
ele instanceof String
ele instanceof Boolean
ele instanceof Number
因为这三种包装类型 在使用typeof 时会返回object
2017-04-22
举报