daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function ajax(){
  2.     console.log("Evento AJAX");
  3.    
  4.     $.ajax({
  5.         url : "url_aqui",
  6.         type : "POST",
  7.         data : {
  8.             dados : argumento
  9.              },
  10.         success : function(json) {
  11.            
  12.             console.log(json);      
  13.         },
  14.  
  15.         error : function(xhr,errmsg,err) {
  16.             console.log(xhr.status + ": " + xhr.responseText);
  17.         }
  18.     });
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top