mixin function mixin(a,b){ for(let key in b){ a[key] = b[key] } } 将b的每一项拷贝到a上,深拷贝 Object.assign 相当于 Object.assign(a,b)