【发布时间】:2014-07-22 03:54:02
【问题描述】:
我什至不确定如何正确使用标题。我正在寻找一种方法来将页面设置为在加载时访问,然后运行命令。下次我加载网页时,它将被标记为已访问,因此它将执行另一段代码。
例子:
(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 等还是比较陌生,请原谅我的无知。
【问题讨论】:
标签: jquery userscripts visited