-3

目前我正在尝试调试整个脚本!我似乎无法让它工作。

在我运行它的那一刻,我收到了这个错误:

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)
4

1 回答 1

0

在最后一行。应该只是},不是})

于 2013-11-10T20:09:27.007 回答