亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - Some problems with ternary operator
阿神
阿神 2017-07-05 10:44:02
0
3
908

阿神
阿神

閉關(guān)修行中......

reply all(3)
習(xí)慣沉默

See inside the black box, the value of la here is 0. In the sentence you marked, la == 0 ? 1 : la - 1, the output value is indeed 1 (because la == 0 established), but there is no place in this line to assign a value to la, so the value of la will not change and is still 0.

ringa_lee
la == 0 ? la = 1 : la - 1
黃舟

la==0?1:la-1

This statement does nothing at all and needs to be changed to;

la=la==0?1:la-1

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template