Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement