摘要:        
function attr(name:string):string; function attr(age:number):string; function attr(nameorage:any):any{ if(nameorage &&typeof nameorage ==="string"){//代表当前是名字 alert("ming") }else{ ...    阅读全文
        
            posted @ 2019-04-11 21:42
icon_sunny
阅读(1397)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
let people = { name:["a","b","c","d"], /* getName:function(){ return function(){ var i=Math.floor(Math.random()*4); return { //this 指代的是getName 不是people 引入lamdads即可 ...    阅读全文
        
            posted @ 2019-04-11 21:41
icon_sunny
阅读(401)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号