var test=["a","b","c"];
var arrClone=[];
$.extend(true,arrClone,test);
test[0]="3";
console.log(test); //["3","b","c"];
console.log(arrClone); //["a","b","c"];
*Nickname: | |
E-mail: | |
Blog URL: | |
#Nickname#
2014/3/17 下午 10:05:59
#CommentContent#
|
|
*請輸入驗證碼: | 看不懂,換張圖 |