Javascript中的`-->`运算符是什么?
Javascript中的`-->`运算符是什么?
这个问题已经有了答案:
我在网上看到一些代码,其中有这个:
document.writeln("
"); for (var line = 10; line --> 0;) { // --> operator here for (var i = 10; i --> 0;) { // --> operator here var s = (Math.floor((Math.random()*2)%2)) ? "╱" : "╲"; document.write(s); } document.writeln(" "); } document.writeln("
");
p { line-height: 18px; font-size: 18px; }
这个-->
运算符到底是什么,它是做什么用的?
admin 更改状态以发布 2023年5月24日