负减号如何小于“ - >”运算符在JavaScript中工作? [英] How does the minus minus less than "-->" operator work in JavaScript?

查看:93
本文介绍了负减号如何小于“ - >”运算符在JavaScript中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

while (max --> min)
{
    console.log(n);
}

我知道 - > 减少了价值,但官方文件中记载的 - > 在哪里?

I know that --> decreases the value, but where is --> documented in the official documentation?

推荐答案

post decrement operator - 后跟大于运算符> 。只是间距很奇怪。

It is the post decrement operator -- followed by the greater than operator >. Just the spacing is weird.

while (max-- > min)

因此, max 递减大于 min ...

So, while max decremented is larger than min

这篇关于负减号如何小于“ - >”运算符在JavaScript中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆