chaine de caractères javascript

chaine de caractères javascript - HTML/CSS - Programmation

Marsh Posté le 18-07-2008 à 14:24:06    

Bonjour,
 
j'ai une question toute bete, comme faut-il faire en javascript pour dire que si l'une variable comprends "tel caractères", on fait un traitement ?
 
donc quelque choses comme ca :
 

Code :
  1. if (description ........ "historique" )
  2. {
  3.        traitement 1
  4. }else{
  5.       traitement 2
  6. }


 
merci de vos réponses

Reply

Marsh Posté le 18-07-2008 à 14:24:06   

Reply

Marsh Posté le 18-07-2008 à 14:25:33    

http://developer.mozilla.org/en/do [...] cts:String bonne lecture


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 18-07-2008 à 14:40:12    

la liste de fonctions pour les caractères ne m'aide pas trop :s :s

Reply

Marsh Posté le 18-07-2008 à 14:41:06    

[:prozac]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 18-07-2008 à 14:43:15    

désolé mais je suis débutant et je parle pas anglais dc :s

Reply

Marsh Posté le 18-07-2008 à 14:45:38    

capri36 a écrit :

désolé mais je suis débutant et je parle pas anglais dc :s


Apparemment tu lis pas non plus le français.


Message édité par masklinn le 18-07-2008 à 14:45:48

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 18-07-2008 à 14:46:35    

merci de ton aide

Reply

Marsh Posté le 18-07-2008 à 15:06:29    

toujours au meme point ! :s

Reply

Marsh Posté le 18-07-2008 à 15:07:05    

Lis la page que je t'ai donné, il y a un menu à droite, si tu reviens je flag ton post pour les modos


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 18-07-2008 à 15:08:59    

rassure moi , tu as quand meme essayé de lire la page , ou tout du moins de faire quelques recherches sur la dizaien de fonctions qu'ils donnent ?


---------------

Reply

Marsh Posté le 18-07-2008 à 15:08:59   

Reply

Marsh Posté le 19-07-2008 à 11:38:41    

masklinn a écrit :

Lis la page que je t'ai donné, il y a un menu à droite, si tu reviens je flag ton post pour les modos


[:rofl]


---------------
Mains power can kill, and it will hurt the entire time you’re dying from it.
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed