#javascript #programowanie
console.log( ignored , ignored == true );
Wyświetla:
true false
?????????????????????????????????????????????
console.log( ignored , ignored == true );
Wyświetla:
true false
?????????????????????????????????????????????
- Najlepsze
- Wszystkie komentarze







Ah faktycznie typeof ignored daje 'string' :)
Zapomniałem po prostu w $.ajax po stronie klienta dać contentType na application/json i szło tradycyjnym postem który nie ma wiedzy o typach :)
Dzięki cumple!
async setPhotoIgnored( req , res ) {
const id = req.body.id;
const ignored