JS array usage description

time:15-12-28 forum:PHP tools and code
  http://blog.sina.com.cn/s/blog_4dd475390102eb8i.html

use array
basic operations var a=new Array (3);
var a=new Array (VaR);
a.#91; 0.#93.
.Lt; /script.gt; [/code]

multidimensional array
[code]
.lt; script.gt;
var rows=. Br />
if (rows.#91; 0.#93;.#91; 0.#93; =null)
{
alert. >xzy=.#91; 1,2,3,4,5,.Quot; Xing Zhiyun.Quot;.Quot; hehe.Quot;.#93; / / / / / / / / / / / / / / / / / / > #91;.Quot; Chinese.Quot;.Quot;.Quot of Taiyuan;.Quot;.Quot;.#93;.#91; 33333.#93;.#91; 44444.#93; souls. 5 6
/ / / / / / / 1011122021303140 41

alert (s); / / / / Hello, China, Taiyuan, Xing Zhiyun, 33333,44444,55555
alert (s.#91; 1.#93;); / / / / / / China, Taiyuan,
alert. R />alert (s.#91; 2.#93;.#91; 1.#93;); //3333
alert (s.#91; 5.#93;.#91; 1.#93; 1.#93);
  • 2
  • 3
  • 4

prev:PHP disables COOKIE to get SESSION next:A 11 year old boy donates half a bone ma...
post comment
Notice



approved   The 71 moments of survival of the po...   Post retirement pension crisis: perh...   How much do you know about the histo...   The inheritance of the old Ji'nan ha...   Do not belittle those street cars, t...
rand   PHP video tutorials LAMP brothers, o...   Regular regular expressions   PHP code shields China's IP address   PHP error Warning: Cannot modify hea...   PHP does not use the iconv () functi...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com