报名考试前端页面(红色页面)

index.html 1.6KB

    <!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link rel="icon" href="<%= BASE_URL %>favicon.ico"> <script src="./config.js"></script> <title><%= htmlWebpackPlugin.options.title %></title> <script> // 获取头部指定参数 function GetQueryString() { var name, value; var str = location.href; //取得整个地址栏 var num = str.indexOf("?") str = str.substr(num + 1); //取得所有参数 stringvar.substr(start [, length ] var arr = str.split("&"); //各个参数放到数组里 for (var i = 0; i < arr.length; i++) { num = arr[i].indexOf("="); if (num > 0) { name = arr[i].substring(0, num); value = arr[i].substr(num + 1); this[name] = value; } } } var Request = new GetQueryString(); //实例化 var uasLoginerValue = Request.uasLoginer if (uasLoginerValue) { console.log(uasLoginerValue); window.localStorage.setItem("uasLoginer", JSON.stringify(uasLoginerValue)) } else { console.log("缺少uasLoginer参数") } </script> </head> <body> <noscript> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> <div id="app"></div> <!-- built files will be auto injected --> </body> </html>