1.深拷贝对象: const a={name:'aaa',age:11} const b=JSON.parse(JSON.stringify(a)) 2.获取数组极值: let list = [1, 2, 3, 4, 5] Math.max(...list) // 5 Math.min(...list) // 1