REGISTER











Mesaje de eroare
#1
Mesaje de eroare personalizate pot fi create folosind clasa Error:
Code:
throw new Error ("Ceva a mers *****.");
Imbricate în instrucțiunile condiționate, aceste instanțe pot înlocui blocurile try/catch:
Code:
var emailAddress = ("Va rugam sa introduceti adresa de e-mail:", "");
if ( ! emailAddress || emailAddress. length === 0 ) {
        throw new Error ("Ne pare rău. Trebuie să introduceți o adresă de e-mail pentru a continua");
}
Reply



Powered by MyBB All rights reserved
Developed with for FASTCS 2011 - 2024 FASTCS