为什么不alert((parseInt(“3”))++);在Google Chrome中运行

Why doesnt alert((parseInt("3"))++); run in Google Chrome?

本文关键字:Google Chrome 运行 parseInt 为什么不 alert      更新时间:2023-09-26

为什么没有

alert((parseInt("3"))++); 
alert(parseInt("3")++); 
alert(++(parseInt("3"))); 
alert(++parseInt("3"));

在谷歌Chrome中运行,但

alert(parseInt("3") + 1);
alert(1 + (parseInt("3"));

跑得很好吗?

我试着查了一下文件,但找不到原因。

++增加左侧属性或变量中的值。

函数的返回值不是属性或变量。