意外令牌 ) 无法调试脚本

Unexpected token ) failing to debug script

本文关键字:调试 脚本 令牌 意外      更新时间:2023-09-26

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

在我运行它的那一刻,我收到此错误:

语法错误:意外的令牌)

有人知道为什么吗?我在哪里把括号放错了地方?谢谢!

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)

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