toString.call()通用的判断数据类型方法示例
                                大家都知道判断数据类型的方法有很多。我们常用的有typeof但是,这个方法有一定的局限性。 typeof null // "object" typeof [8] // "object" typeof {} // "object" typeof function(){} // "function" typeof 2 //"number" typeof "" //"string" typeof true //"boolean" typeof undefined //"undefined" typeof Symbol(2) // "symbol" typeof 无法区分null 数组和对象,通常我                            
                            
                            
                            
                        
                            下载地址
                        
                    
                            用户评论
                        
                    