2023年12月27日

摘要: 使用fetch API来发送一个HTTP请求,然后获取response.url属性 fetch('原始URL') .then(function(response) { if (response.ok) { var redirectedURL = response.url; console.log(r 阅读全文
posted @ 2023-12-27 11:38 LeeToLee 阅读(434) 评论(0) 推荐(0) 编辑
 
摘要: // 获取完整的URL字符串 var url = window.location.href; // 获取URL字符串中的参数部分 var params = url.split('?')[1]; // 将参数部分按照&符号分割成数组 var paramsArray = params.split('&' 阅读全文
posted @ 2023-12-27 11:36 LeeToLee 阅读(100) 评论(0) 推荐(0) 编辑
 
摘要: 1.在public文件夹下,新建config/config.js文件 window["edmConfig"] = { loginConfig: { loginSource: "d d d", loginUrl: "a a a", service: "c c c" } } 2.在index.html中 阅读全文
posted @ 2023-12-27 11:33 LeeToLee 阅读(51) 评论(0) 推荐(0) 编辑