javascript:数组对象的一些方法
1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 width:300px; 7 height:200px; 8 border:dashed 1px green; 9 } 10 </style> 11 </head> 12 <body> 13 <div id='box'> 14 </div> 15 <script language='javascript'> 16 var array=[1,3,14,5,19,10]; 17 //document.write(array.splice(2,2)); 18 //document.write(array.slice(2,2)); 19 document.write(array); 20 document.write("<br/>"); 21 document.write(array.join('')+'<br/>');//指定分隔符 22 var str="jsp jsp web web"; 23 document.write(str.split(" ")); 24 </script> 25 26 </body> 27 </html>