我什至不知道如何正确地用词标题。我正在寻找一种在加载页面时将页面设置为已访问,然后运行命令的方法。下次我加载网页时,它将被标记为已访问,因此它将执行另一段代码。
例子:
(function(){
//Detect if page is visited, and direct it to the correct part of the code
//This is the set of code to run if the page has not been visited, Set page as visited here
$( "#button" ).click();
//Run this if the page has been marked as visited
setTimeout(function(){
window.close();
}, 50);
})();
对于 Jquery 等来说还是相当新的,请原谅我的无知。