世界位置全局位置_位置=位置

news/2024/7/10 0:51:23 标签: javascript, python, java, js, vue
世界位置全局位置

世界位置全局位置

location = location ... and 534 other ways to reload the page with JavaScript

location = location ...以及534种其他使用JavaScript重新加载页面的方法

How many ways you can think of when you want to reload the current page with JavaScript? I counted 535 before I got bored, maybe someone can pick up from there? The cases are so much that I had to write a script to generate them 🙂

要使用JavaScript重新加载当前页面时可以想到几种方法? 在无聊之前我数了535,也许有人可以从那里接电话? 案例如此之多,以至于我不得不编写脚本来生成它们them

» have fun, see for yourself

»玩得开心,自己看看

Just occurred to me that I didn't even include the frames property in those 535 ways. Consider the limitless possibilities having in mind for example that:

我只是想到,我什至没有在这535种方式中包含frames属性。 例如,请考虑以下无限可能性:

>>> window.frames === window
true
>>> frames === window.self
true

Could you come up with 500 more ways? A 1000? One condition: no recursion, for example window.self.window is not allowed.

您能再想出500种方法吗? 一千? 一种情况:没有递归,例如,不允许window.self.window

Tell your friends about this post on Facebook and Twitter

在Facebook和Twitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/locationlocation/

世界位置全局位置


http://www.niftyadmin.cn/n/1306337.html

相关文章

Struts2实现文件上传(一)

Struts2实现文件上传 文件上传成功后结果页面 result.jsp&#xff1a; <% page language"java" import"java.util.*" pageEncoding"UTF-8"%> <% taglib prefix"s" uri"/struts-tags" %> <% String path re…

HDU-2159 FATE(二维费用背包问题)

题目链接&#xff1a;http://acm.hdu.edu.cn/showproblem.php?pid2159 题目&#xff1a; FATE Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10499 Accepted Submission(s): 4974 Problem Description最近…

哪个杀毒软件没有弹窗广告_没有广告

哪个杀毒软件没有弹窗广告After adding adsense ads to this blog about three weeks ago, I took them off today. The reason is simple: the earnings were beyond disappointing. I guess adsense T&C do not allow me to reveal my stats, but lets say that the mone…

HDU-1712 ACBoy needs your help (分组背包问题)

题目链接&#xff1a;http://acm.hdu.edu.cn/showproblem.php?pid1712 题目&#xff1a; ACboy needs your help Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5653 Accepted Submission(s): 3077 Proble…

雅虎财经 api_雅虎音乐API

雅虎财经 apiThis was meant to be a longer posts with examples and such, but Jim Bumgardner said it and coded it better than I could &#x1f642; Hes been with Y!Music way longer than me and has done way cooler stuff. 这本来应该是带有示例等内容的更长篇幅&a…

Struts2实现文件上传(二)

Struts2实现文件上传 文件上传页面 file.jsp&#xff1a; <% page language"java" import"java.util.*" pageEncoding"UTF-8"%> <% taglib prefix"s" uri"/struts-tags" %><% String path request.getCont…

C++与STL再回顾

因为暑假和秋季学期学习太过不认真&#xff0c;以至于至今对一些基础性质的东西尚有许多疑问&#xff0c;虽然平时做题没什么影响&#xff0c;可总还是个隐患。今天就再回头看一看C与STL里面的一些基本知识&#xff0c;在短时间内把这些东西复习一&#xff0c;同时也把以前没搞…

Struts2实现文件上传(三)

Struts2实现文件上传 配置文件web.xml <?xml version"1.0" encoding"UTF-8"?> <web-app version"3.0" xmlns"http://java.sun.com/xml/ns/javaee" xmlns:xsi"http://www.w3.org/2001/XMLSchema-instance" xsi:sc…