home.js 736 B

12345678910111213141516171819202122232425262728293031323334353637
  1. var loadbox = "";
  2. function lodeHtml(){
  3. loadbox = '<div id="loadinfo" class="mine-dialog">'
  4. + '<div class="loader-inner ball-spin-fade-loader">'
  5. + '<div></div>'
  6. + '<div></div>'
  7. + '<div></div>'
  8. + '<div></div>'
  9. + '<div></div>'
  10. + '<div></div>'
  11. + '<div></div>'
  12. + '<div></div>'
  13. + '</div>'
  14. + '</div>';
  15. $("#app").append(loadbox);
  16. }
  17. function closeLode(){
  18. $("#loadinfo").remove();
  19. }
  20. function GetRequest(){
  21. var url = location.search; //获取url中"?"符后的字串
  22. var theRequest = new Object();
  23. if (url.indexOf("?") != -1){
  24. var str = url.substr(1);
  25. strs = str.split("&");
  26. for (var i = 0; i < strs.length; i++) {
  27. theRequest[strs[i].split("=")[0]] = strs[i].split("=")[1];
  28. }
  29. }
  30. return theRequest;
  31. };