var Super = {
a: function() {
console.log("old")
},
b:function(){
console.log("show a");
}
};
var Superb = {
a: function() {
console.log("new");
}
};
var Sub = $.extend(Super, Superb);
Sub.a();
Sub.b();
沒有留言:
張貼留言