Home > Web Front-end > JS Tutorial > body text

Tips on using array arrays in javascript_Basic knowledge

WBOY
Release: 2016-05-16 18:35:29
Original
821 people have browsed it
Copy code The code is as follows:

var array = new Array(["no1","no2"] );
array["po"] = "props1";
alert(array[0][0]);
alert(array.length); //2
//For arrays Generally speaking, array[0] has the same effect as array["0"] (? Not sure, this is true during testing)
alert(array[0] "_" array["1"] "_" array. po);//
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template