Ajax
ASP
C,C++
C#,.NET
CSS,HTML
Delphi,Kylix
Experience
Flash
Java
JavaScript
PHP
Python
QT
SQL
ShellScript
VB
U :
P :
Register
Lost Password
Other Links
Code Archive
Save Giovanni
JavaScript Category Code
Real Name
:
Secure Shell
Subject
:
Javascript join array elements / Javascriptte dizi elemanlarını birleştirme
Description
:
The following example creates an array, a with three elements, then joins the array three times: using the default separator, then a comma and a space, and then a plus.
Bu örnekte javascriptte oluşturulmuş dizi elemanlarını farklı ayıraçlar ile birleştirmeyi öğreniyoruz.
a = new Array("Wind","Rain","Fire") document.write(a.join() +"<br />") document.write(a.join(", ") +"<br />") document.write(a.join(" + ") +"<br />") // ------------------- This code produces the following output: Wind,Rain,Fire Wind, Rain, Fire Wind + Rain + Fire
Rating
:
5.00
(out of 5)
Visitor Voting Booth
:
Excellent
Very Good
Good
Fair
Poor
Copyright © 2006 SharingCode.NET . All rights reserved. Hosted By: SisNetworks