What is the difference between document.write() before and after executing code a++?
Black
Black 2020-04-30 15:35:16
0
1
1489

<script type="text/javascript">

var a=1

for (var i=1;i<99;i )

{

a

document.write(a "<br>")

}</script>

与下列代码的区别

<script type="text/javascript">

var a=1

for (var i=1;i<99;i )

{

document.write(a "<br>")

a

}</script>

Black
Black

reply all(1)
DY。

The former prints out starting from 2

The latter prints out starting from 1

a is equivalent to a =a 1

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