SHARE
TWEET

Untitled

a guest Jul 17th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nction(){
  2.  
  3.     var staff = getStaff();
  4.  
  5.  
  6. })
  7.  
  8. function getStaff(){
  9.     $.ajax('/getstaff',
  10.             {
  11.                 success: function(data){
  12.                     return = data;
  13.                 },
  14.  
  15.                 error: function (xhr, ajaxOptions, thrownError) {
  16.                     console.log(xhr.status);
  17.                     console.log(thrownError);
  18.                 }
  19.             }
  20.         )
  21. }
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