https://www.cnblogs.com/chengxs/p/10788442.html var arr = [true,1,'str',{ a: 1}] console.log(arr) //[true, 1, "str", {…}] var a = JSON.parse(JSON.stringify(arr)) console.log(a) //[true, 1, "str", {…}] a.splice(0,2) console.log(a) //["str", {…}] console.log(arr) //[tru...