Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.post(uuid.url + '/url', {
- username:'abc',
- }, function(html) {
- console.log('register');
- }, 'text');
- function sendPost(inputURL) {
- try{
- var xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- console.log(this.responseText);
- }
- };
- xhttp.open("POST", inputURL, true);
- xhttp.send();
- } catch(e) {
- console.log(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement