扩展js对象扩展模块用法var base = { hello: 'world' }; var about = { name: 'matt' }; var data = { val: 10 }; var override = { val: 20 }; extend(base, about, data, override); console.log(base); // { hello: 'world', name: 'matt', val: 20 };