JavaScript 数组切片 slice JavaScript 数组 shift 方法 JavaScript 数组 some 方法 JavaScript 数组切片 slice <html> <head> <title>JavaScript Array slice Method</title> </head> <body> <script type = "text/javascript"> var arr = ["orange", "mango", "banana", "sugar", "tea"]; document.write("arr.slice( 1, 2) : " + arr.slice( 1, 2) ); document.write("<br />arr.slice( 1, 3) : " + arr.slice( 1, 3) ); </script> </body> </html> JavaScript 数组 shift 方法 JavaScript 数组 some 方法