console.log(myinstanceOf_('123', String)); //true console.log('123' instanceof String); // false myinstanceOf_判断之前要先做类型判断