<form onsubmit="func()">
<h1>Регистрация</h1>
<p>
Введите логин:<br>
<input type="text" id="login">
<br>
Введите пароль<br>
<input type="password" id="password">
<br>
<input type="submit">
</p>
</form>
<script>
const func = e => {
console.log({
"login": document.getElementById('login').value,
"password": document.getElementById('password').value,
})
}
</script>
function getUserAccount() {
return axios.get('/user/12345');
}
function getUserPermissions() {
return axios.get('/user/12345/permissions');
}
axios.all([getUserAccount(), getUserPermissions()])
.then(axios.spread(function (acct, perms) {
// Both requests are now complete
}));
word-wrap: break-word;