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:
post comment
Notice



approved   The old man takes care of the paraly...   The girl wants to donate the liver t...   The most beautiful adoptive mother i...   What's the use and use of the social...   A glimpse of the Intangible Cultural...
rand   Using CURL instead of file_get_conte...   Use.Htaccess to prevent images from ...   Encryption and decryption of PHP fil...   PHP hidden data, MD5 encryption, int...   Processing method of Chinese charact...
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