123456789101112131415161718192021222324252627282930313233343536373839 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <link rel="stylesheet" href="./common/reset.css">
- <script src="./common/jquery-2.1.0.js"></script>
- <title></title>
- <style>
- img{
- width: 100%;
- }
- </style>
- </head>
- <body>
- <img class="conImg" src=""/>
- </body>
- </html>
- <script>
- var qs = parseQueryString(window.location.href);
- $().ready(function () {
- if(qs.appName){
- document.title = qs.appName;
- }
- if(qs.url){
- $(".conImg").attr('src','https://kx-gw.oss-cn-beijing.aliyuncs.com/' + qs.url)
- }
- })
- //获取地址栏参数
- function parseQueryString(url) {
- var urlObj = {};
- var reg = /([^?=&]+)=([^?=&]+)/g;
- url.replace(reg, function($0, $1, $2) {
- urlObj[$1] = decodeURIComponent($2);
- })
- return urlObj;
- }
- </script>
|