Home >
front end > Give a literal cycle display code, site seems to parsing
Give a literal cycle display code, site seems to parsing
<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>