var a = 5; var b = 6; //第一种方法: a = a+b; b = a - b; a = a - b; //第二种方法: a = [a,b]; b = a[0]; a = a[1];
var a = 5; var b = 6; //第一种方法: a = a+b; b = a - b; a = a - b; //第二种方法: a = [a,b]; b = a[0]; a = a[1];
原文:http://www.cnblogs.com/wangxi01/p/8075547.html