Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Splitting on several lines
Message
De
03/06/2013 03:05:58
 
 
À
01/06/2013 13:12:16
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01575403
Message ID:
01575459
Vues:
37
>Anyone would have the proper syntax to split that line into several lines:
>
>
>return typeof loWindow.pageYOffset != 'undefined' ? loWindow.pageYOffset: document.documentElement.scrollTop?
> document.documentElement.scrollTop: document.body.scrollTop? document.body.scrollTop:0
>
take advantage of JavaScript automatic coercion !
return loWindow.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform