app官网

gw.html 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <link rel="stylesheet" href="./common/reset.css">
  8. <script src="./common/jquery-2.1.0.js"></script>
  9. <title></title>
  10. <style>
  11. img{
  12. width: 100%;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <img class="conImg" src=""/>
  18. </body>
  19. </html>
  20. <script>
  21. var qs = parseQueryString(window.location.href);
  22. $().ready(function () {
  23. if(qs.appName){
  24. document.title = qs.appName;
  25. }
  26. if(qs.url){
  27. $(".conImg").attr('src','https://kx-gw.oss-cn-beijing.aliyuncs.com/' + qs.url)
  28. }
  29. })
  30. //获取地址栏参数
  31. function parseQueryString(url) {
  32. var urlObj = {};
  33. var reg = /([^?=&]+)=([^?=&]+)/g;
  34. url.replace(reg, function($0, $1, $2) {
  35. urlObj[$1] = decodeURIComponent($2);
  36. })
  37. return urlObj;
  38. }
  39. </script>