//方法一: var a=-2,b=-3;a=a+b;b=a-b;a=a-b; // console.log(a+','+b); //方法二: var a=-2,b=-3;a=a^b;b=a^b;a=a^b; // console.log(a+','+b);
//方法一: var a=-2,b=-3;a=a+b;b=a-b;a=a-b; // console.log(a+','+b); //方法二: var a=-2,b=-3;a=a^b;b=a^b;a=a^b; // console.log(a+','+b);