Home > front end >  Give a literal cycle display code, site seems to parsing
Give a literal cycle display code, site seems to parsing

Time:09-16






<meta charset="UTF-8">

<meta name="viewport" content="width=device - width, initial - scale=1.0" & gt;

Document



<body>



<script>

Var arr=[

'aaaaaaaaa'

'BBBBBBBBB'

'CCCCCCCCC'

'DDDDDDDDD'

];

Var index=0;

The function update () {

Document. The getElementById (" textbox "). The innerHTML=arr [index];

Index (index + 1)=% arr. The length;

SetTimeout (update, 2000);

}

The update ();



</script>







This is the last on the site, the effect is shown in figure,
Website does not support?
I tried 2 window on my web site, a can a can't parse, what reason is this?

CodePudding user response:

Or do you have any, can be done with the HTML code

CodePudding user response:

Like & lt; script> Label is wrong, you send it and see your error code,

CodePudding user response:

You are not in the code editor, the cursor & lt; script> Press the TAB key after the script tag, become & lt; <script> </script> So,

  • Related