My favorites
▼
|
Sign in
lineadecodigo
Web Code Samples in spanish
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
lineadecodigo_web
/
WebContent
/
scripting
/
javascript
/
basicos
/
funcion-argumentos-variables.html
r480
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Función Javascript con argumentos variables</title>
<script type="text/javascript">
function calculardatos (){
document.write("Invocación recibida" + "<br/>");
for (x=0;x<arguments.length;x++)
document.write(arguments[x] + "<br/>");
}
</script>
</head>
<body>
<h1>Función Javascript con argumentos variables</h1>
<script type="text/javascript">
calculardatos("1","2","3");
calculardatos("Hola", 4);
calculardatos(2);
</script>
<br><br>
<hr>
Artículo disponible en: <a href="http://lineadecodigo.com/javascript/funcion-con-parametros-variables-en-javascript/">"http://lineadecodigo.com/javascript/funcion-con-parametros-variables-en-javascript/</a><br/>
<a href="http://lineadecodigo.com" title="Linea de Codigo">lineadecodigo.com</a>
</body>
</html>
Show details
Hide details
Change log
r272
by vcuervo on Aug 27, 2010
Diff
Función argumentos variables en Javascript
Go to:
...ent/scripting/javascript/basicos
...uncion-argumentos-variables.html
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 992 bytes, 31 lines
View raw file
Powered by
Google Project Hosting