Bonjour,
J'ai ce bout de code (dans un fichier JS)
Le problème c'est que j'ai une erreur de compilation (au niveau de la concaténation) comme montre l'image suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 b.push( '<a ' + 'class="link depth-' + indent + '"' + ( (typeof target !== 'undefined' && target != '') ? ' target="' + target + '"' : '') + ( (typeof href !== 'undefined' && href != '') ? ' href="' + href + '"' : '') + '>'+ for(i=0;i<MonTableau.length;i++){ +'<img class="ico" src="'+MonTableau[i]+'" width="40px" height="40px" />'+ } /*'<span class="indent-' + indent + '"></span>' +*/ $this.text() + '</a>' );
C'est quoi le problème? merci en avance.
Partager