2010-06-08 2 views

Répondre

2

Utilisez le string.toLowerCase() method, ceci est la base javascript , pas de jQuery nécessaire:

pathname = pathname.toLowerCase(); 
if (pathname == "/" || pathname == "/default.asp") { 
    //case in-sensitive math! 
} 
+0

merci je vous aime!/part cupcakes – Noemi

+0

@Noemi: Yay cupcakes! Merci :) –

1

Je crois que cela pourrait fonctionner:

si (== chemin "/" || pathname.toLowerCase() == "/default.asp")

Questions connexes