2011-09-05 138 views

回答

3

只是保存在變量中的一個項目,你覆蓋它之前:

var temp = list[1]; 
list[1] = list[3]; 
list[3] = temp;