Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Splitting on several lines
Message
De
02/06/2013 03:22:07
 
 
À
01/06/2013 13:12:16
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01575403
Message ID:
01575418
Vues:
45
>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
>
    if (typeof loWindow.pageYOffset != 'undefined') {
        return loWindow.pageYOffset;
    }
    if (document.documentElement.scrollTop) {
        return document.documentElement.scrollTop;
    } 
    return 0;
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform