1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> </body> </html> <script type="text/javascript"> var hreo=["德莱文","托儿所","瑞文","妮蔻","石头人"] document.write(hreo+"<br />"); hreo.push("阿木木"); document.write(hreo+"<br />"); hreo.pop(); hreo.pop(); document.write(hreo+"<br />"); hreo.unshift('小学僧'); document.write(hreo+"<br />"); hreo.shift(); document.write(hreo+"<br />"); hreo.splice(1,0,"奥特曼"); document.write(hreo+"<br />"); hreo.splice(2,0,"泰罗","迪迦"); document.write(hreo+"<br />"); hreo.splice(1,2,"赛文","杰克","赛罗"); document.write(hreo+"<br />"); </script>
|