Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #382

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
临时更改:查看 window.location
  • Loading branch information
chenyinheng30 committed Nov 16, 2023
commit 99e8339e0779b46a17f15b07d1f27111554eda09
8 changes: 1 addition & 7 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@
.then(ipData => handleIpApi(ipData));
</script>
<script>
var req = new XMLHttpRequest();
req.open('GET', document.location, true);
req.send(null);
req.onload = function() {
var headers = req.getAllResponseHeaders()
console.log(headers);
};
console.log(window.location);
</script>

{{- /* Profile */ -}}
Expand Down