针对对象数组;
后面的属性会覆盖更新前面的属性
看代码;
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Canvas绘制文本文字入门示例 </title> </head> <body> <script src="lodash.js"></script> <script> var a = _.extend({ 'user': 'barney' }, { 'age': 40 }, { 'user': 'fred' }); console.log(a); </script> </body> </html>