-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 に答える