标签:
/*================================= @DESC:Exchange two value without third var. @AUTHOR: Not me. @DATE:2016-3-6 15:33 ==================================*/ var a = "Apple"; var b = "Banana"; var a = [b, b = a][0]; alert(a); //Banana
201603061528_《Javascript交换两个变量值(不借用第三变量)》
标签:
原文地址:http://www.cnblogs.com/beesky520/p/5247604.html