dojo.mixin

    dojo.mixin用于把几个对象实例的属性混合在一起。

var book = {
size:10,
color:"green"
};

function children(name){
this.name = name;
};
var ch = new children("test");

var obj = new Object();
dojo.mixin(obl,ch,book);

 

 

你可能感兴趣的:(dojo mixin)