PageRenderTime 23ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/documentation/appframework/$.get.md

https://github.com/maoyao/appframework
Markdown | 39 lines | 23 code | 16 blank | 0 comment | 0 complexity | 8793cbf52b005ce64f3260317eef10f4 MD5 | raw file
  1. #$.get(url,success)
  2. ```
  3. Shorthand call to an Ajax GET request
  4. ```
  5. ##Example
  6. ```
  7. $.get("mypage.php?foo=bar",function(data){});
  8. ```
  9. ##Parameters
  10. ```
  11. url String
  12. success Function
  13. ```
  14. ##Returns
  15. ```
  16. undefined
  17. ```
  18. ##Detail
  19. $.get(url,successFnc) is a shorthand call to $.ajax
  20. The first parameter is the URL, the second is the sucess function. You can not specify any other options for $.ajax.
  21. ```
  22. $.get("mydata.php?foo=bar",function(res){console.log(res)});
  23. ```