BT编程语言文档
concat
合并多个对象,并返回一个新的对象语法 Object.concat()
obj1 = { name: 'Suxe' age: 30 } obj2 = { Gender: 'Female' } println obj1.concat(obj2, {Hobby: 'Reading'}) // 输出:{"name": "Suxe", "age": 30, Gender: 'Female', Hobby: 'Reading'}语法 Object.concat()
obj1 = { name: 'Suxe' age: 30 } obj2 = { Gender: 'Female' } println obj1.concat(obj2, {Hobby: 'Reading'}) // 输出:{"name": "Suxe", "age": 30, Gender: 'Female', Hobby: 'Reading'}