目前我正在尝试调试整个脚本!我似乎无法让它发挥作用。
在我运行它的那一刻,我收到了这个错误:
SyntaxError:意外的令牌)
有人知道为什么吗?我把括号放在错误的地方?谢谢!
var hats = [124472052, 67996263];
var request = 25;
var Loop = setInterval(function(){
for (var Id in hats) {
var origLink = "http://www.roblox.com/x-item?id=" + hats[Id];
$.get(origLink,function(data){
var Regex = /item\Dprivatesale\Dprice\D\D([\d])\D\Dspan\D/;
var PriceSelling = data.match(Regex)[1];
PriceSelling = Number(PriceSelling.replace(",",""));
if (PriceSelling <= request) {
var hatBuying = "http://m.roblox.com/items/" + hats[Id] + "/privatesales";
$.get(hatBuying, function(data){
var Regex2 = /<a href="\/Catalog\/VerifyTransfer\\?userAssetOptionId=([\d,]+)\Damp;expectedPrice=([\d,]+)">/;
var buyId = data.match(Regex2)[1];
var buyLink = "http://m.roblox.com/Catalog/VerifyTransfer?userAssetOptionId=" + buyId + "&expectedPrice=" + PriceSelling;
var Explorer = document.createElement('iframe');
function Buy(){
Explorer.contentDocument.forms[0].submit();
};
Explorer.onload = Buy;
Explorer.width = "300";
Explorer.height = "400";
Explorer.src = buyLink;
document.body.innerHTML = "";
document.body.appendChild(Explorer);
clearInterval(Loop);
}
});
}
});
},0)
答案 0 :(得分:0)
在前一行之前。它应该只是}
,而不是})
。