High-Tech
Santé-Médecine
Droit-Finances
CodeS-SourceS
Inscription
Plan
Connexion
Rechercher un code, un tuto, une réponse
Accueil
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Tous les langages
Delphi / Pascal
Java
Python
SQL
RegEx
Flash
ASM
IRC
Graphisme
PDA
ColdFusion
Foxpro
Flex
Visual Basic / VB.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
PHP
Forum
Tutoriels
Codes Sources
Snippets
Top membres
C/C++/C++.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Javascript
Forum
Tutoriels
Codes Sources
Snippets
Top membres
C#/.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
ASP/ASP.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Accueil
Connexion
Déposer un code
Code
Recherche
Haut
Forum
Commentaires sur une source
Sujet Précédent
Sujet Suivant
PSEUDO CLASS JAVASCRIPT PERMET LE STORAGE(HTML5) D'UN TABLEAU
jdmcreator
Messages postés
647
Date d'inscription
samedi 30 décembre 2000
Statut
Membre
Dernière intervention
20 juillet 2012
- 25 nov. 2010 à 23:21
Magelo
Messages postés
2
Date d'inscription
vendredi 25 mai 2007
Statut
Membre
Dernière intervention
1 décembre 2010
-
1 déc. 2010 à 11:03
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.
https://codes-sources.commentcamarche.net/source/52485-pseudo-class-javascript-permet-le-storage-html5-d-un-tableau
Magelo
Messages postés
2
Date d'inscription
vendredi 25 mai 2007
Statut
Membre
Dernière intervention
1 décembre 2010
1 déc. 2010 à 11:03
Voici un petit Example HTML pour l'utilisation du code :
<html>
<head>
<script language=javascript src="storageArray.js"></script>
</head>
<script language=javascript>
var My_Array = new storageArray("default");
My_Array.push([123,"toto",456,789,"add in array"]);
document.write(typeof My_Array.At(3) + " = " + My_Array.At(3) +"
");
My_Array.Slice(3);
document.write(typeof My_Array.At(3) + " = " + My_Array.At(3) +"
");
My_Array.push("hello"+"
");
document.write(My_Array.At(My_Array.size()-1));
My_Array.clear();
document.write("Size of the array = " + My_Array.size());
</script>
</html>
jdmcreator
Messages postés
647
Date d'inscription
samedi 30 décembre 2000
Statut
Membre
Dernière intervention
20 juillet 2012
7
25 nov. 2010 à 23:21
Bonjour,
Pourrais-t-on avoir un petit exemple d'utilisation ? Merci
Votre réponse
Discussions similaires
generateur de pseudo
cybergroove
-
7 mars 2004 à 12:36
braskospouky
-
28 janv. 2009 à 10:38
Algo d'un générateur de nombres pseudo-aléatoires
TriFidEly
-
20 avril 2011 à 11:05
TriFidEly
-
23 avril 2011 à 00:50
Récupérer toutes les class d'un élément
cs_flexx
-
26 avril 2005 à 19:25
flexx
-
27 avril 2005 à 12:10
afficher un tableau en php
Larose_1921
-
18 avril 2020 à 16:00
s
-
6 mai 2020 à 18:11
Partie entiére d'un nombre
stephbb75
-
18 févr. 2003 à 13:33
stephbb75
-
19 févr. 2003 à 09:15
Rejoignez-nous
A voir également
Récupérer données json (javascript)
Afficher un tableau php en html
Javascript poo
Base de données javascript
Retourner un tableau en c
1 déc. 2010 à 11:03
<html>
<head>
<script language=javascript src="storageArray.js"></script>
</head>
<script language=javascript>
var My_Array = new storageArray("default");
My_Array.push([123,"toto",456,789,"add in array"]);
document.write(typeof My_Array.At(3) + " = " + My_Array.At(3) +"
");
My_Array.Slice(3);
document.write(typeof My_Array.At(3) + " = " + My_Array.At(3) +"
");
My_Array.push("hello"+"
");
document.write(My_Array.At(My_Array.size()-1));
My_Array.clear();
document.write("Size of the array = " + My_Array.size());
</script>
</html>
25 nov. 2010 à 23:21
Pourrais-t-on avoir un petit exemple d'utilisation ? Merci