javascript中有趣的面向对象的思想

var myCountry={

getCapital:function(){

alert(this.myCapital);

},

myName:'USA',

myCapital:"Washington DC"

}



function(a,b){

this.name=a;

this.age=b;

}

你可能感兴趣的:(jquery)