如果We are sorry but we made a boo boo出现文本
我想用JavaScript做到这一点.
这是一次尝试
(function () {
"use strict";
function walkTheDOM(node, func) {
if (node && node.nodeType) {
if (typeof func === "function") {
func(node);
}
node = node.firstChild;
while (node) {
walkTheDOM(node, func);
node = node.nextSibling;
}
}
}
function filterElementsByContains(elements, string) {
var toStringFN = {}.toString,
text = toStringFN.call(elements),
result,
length,
i,
element;
if (text !== "[object NodeList]" && text !== "[object Array]" && !($() instanceof jQuery)) …Run Code Online (Sandbox Code Playgroud) 如何每60秒重新加载一次页面?
我的尝试:
setTimeout (location.reload, 1 * 60 * 60);
Run Code Online (Sandbox Code Playgroud)
我不确定这些数字是什么意思,或者如何使它们仅在60秒后重新加载.