var list = [1, 2, 3, 4]; function empty() { // 清空陣列 list.length = 0; } empty();. list = [] 將分配一個新的參考陣列給變數,而其他的參考則 ...
確定! 回上一頁