js中逗号的意思

js中逗号的意思

1.逗号运算符:按顺序执行表达式,并且获得右边表达式的值。例子如下:var a = 10var b = 20var c = (a++,b++,100)console.log(a)console.log(b)console.log(c)值是1
JavaScript260