Created
November 28, 2018 08:07
-
-
Save wilk/37a8a067394c42b6521753888656f43b to your computer and use it in GitHub Desktop.
fetch post qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function sendInterface(data) { | |
try { | |
await fetch(`your_page.php?data=${data}`, {method: "POST"}) | |
} catch (err) { | |
console.error(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment