let list = [1, 2, 3] list.splice(0, list.length); // 方法一 // list.length = 0; // 方法二 console.log(list); // []