gpt4 book ai didi

javascript - 我如何创建一个返回 204 的 url

转载 作者:行者123 更新时间:2023-11-30 09:47:07 26 4
gpt4 key购买 nike

我正在尝试使用 i frame buster 代码,但我需要使用 204 url​​。我如何创建给出 204 无内容错误的页面,以便此 iframe 破坏者代码工作

<script type="text/javascript">?

var prevent_bust = 0;?
window.onbeforeunload = function() { prevent_bust++; }?
setInterval(function() {?
if (prevent_bust > 0) { ?
prevent_bust -= 2;?
window.top.location = 'http://domain.com';?
} ?
}, 1);?
</script>

window.top.location =我想是一个 204 url​​ 那么我该如何创建一个

最佳答案

使用此服务 http://httpstat.us/ .只需在末尾添加您想要的状态代码即可。即 http://httpstat.us/204

关于javascript - 我如何创建一个返回 204 的 url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38417045/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com