var myLang={ NO1:"HTML", NO2:"CSS", NO3:"TS", myStudyingLang:function(num){ console.log(this['NO'+num]) } } myLang.myStudyingLang(2)
运行结果