工作似乎无法让我的随机#在所有的工作 - 代码将不会执行:(无法获取随机数为的setTimeout
function getRandomInt (5000, 10000) {
return Math.floor(Math.random() * (10000 - 5000 + 1)) + 5000;
}
setTimeout(Greasemonkey_main, getRandomInt);
function Greasemonkey_main() {
unsafeWindow.submitform(0);
unsafeWindow.submitform(1);
unsafeWindow.submitform(2);
unsafeWindow.submitform(3);
}
感谢
请注意,您可以打开火狐” s ***错误控制台(*** Ctrl + Shift + J ***)查看这样的代码会抛出错误。 – 2013-04-29 06:24:28