+-
                                
                                    
                                
                                
                                    
                                
                                
                                    
                                         
                                        
                                        
                                        
                                        
                                            
                                        
                                        
                                    
                                
                            
                        
created() {
        //如果取出来的可能是 undefined 类型 怎么判断?
        this.username = localStorage.getItem("username");
        
        //网上找的方式,发现没什么用啊!!
        if((typeof this.username) == 'undefined'){
            this.username="aaa";
        }
        //三等号也不行
        if((typeof this.username) === 'undefined'){
            this.username="aaa";
        }
        //不加引号 也没用
        if((typeof this.username) === undefined){
            this.username="aaa";
        }
      
    }
 
                