Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
364 B
3
Indexable
Never
<script>
    $("#submit").click(function(e){
        e.preventDefault();
        $.post("http://localhost:8080/api/login", { email:"test@test.com", password:"tst"}, function (data) {
            alert("Data: " + JSON.stringify(data));
        }).fail(function(xhr, textStatus, errorThrown){
            alert(xhr.responseText);
        })
    })
</script>