Код: Выделить всё
Load
async function fetchFoo(rowId) {
let url = `https://www.example.com/foo/${rowId}`;
let response = await fetch(url);
let result = await response.text();
return result;
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... g-alpinejs
Мобильная версия