function test(){ var a=b=c=1; var a=1, b=2,c=3; } 1中b\c 为全局变量, a为私量 2中a\b\c为私量 转载于:https://www.cnblogs.com/freddyhuang/p/6193408.html