“Wypieraj API Flask Cierrect” Kod odpowiedzi

Wypieraj API Flask Cierrect

fetch('url',{
    method:'POST'                
    }) 
    .then((response)=>{         
        if(response.redirected){
            window.location.href = response.url;
        }
    })           
    .catch(function(e){
        
    })
Anxious Anteater

Wypieraj API Flask Cierrect

//python
flash('some message for index page')  
return redirect(url_for('index'))

//js
fetch('url',{
    method:'POST'                
    }) 
    .then((response)=>{         
        if(response.redirected){
            window.location.href = response.url;
        }
    })           
    .catch(function(e){
        
    })
Anxious Anteater

Odpowiedzi podobne do “Wypieraj API Flask Cierrect”

Pytania podobne do “Wypieraj API Flask Cierrect”

Więcej pokrewnych odpowiedzi na “Wypieraj API Flask Cierrect” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu