daily pastebin goal
58%
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
Top