Advertisement
rhuntington

Untitled

Aug 11th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.26 KB | None | 0 0
  1. if(charid != "" && charid != null) {
  2.     function rtChar() {
  3.         return Promise.resolve($.get("data.php?charid=" + encodeURIComponent(charid), (data)=> {
  4.             console.log(data);
  5.         }));
  6.     }
  7. }
  8.  
  9. let trial = rtChar();
  10. trial.then((value)=> {
  11.     console.log(value);
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement