let a = {m:'1',j:'2'} let b = {y:'1',u:'2'} let ab = { ...a, ...b }; console.log(ab) // params = {...params,...obj} // let keys = Object.keys(obj) // keys.forEach(key => params[key] = obj[key]) // 最后params里包含合并的对象内容