Equivalent à urlencode($str) de php mais pour javascript function URLEncode (clearString) { var output = »; var x = 0; clearString = clearString.toString(); var regex = /(^[a-zA-Z0-9_.]*)/; while (x < clearString.length) { var match = regex.exec(clearString.substr(x)); if (match != null… Continue Reading →
la fonction ipValid accèpte 2 paramètres : ip : (string) une chaà®ne de caractère qui doit être testée comme une adresse IP. type : (number) 4 ou 6 pour tester une IPv4 ou IPv6 function ipValid(ip,type) { if(type==4) reg =… Continue Reading →
© 2024 C'est pas compliqué — Powered by WordPress
Theme by Anders Noren — Up ↑