Open ssnau opened 7 years ago
fetch("/url", { method: "POST", headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ text: this.text || '' }) }) .then((res) => res.text()) .then((text) => alert(text))
Fetch Post