![](/img/trans.png)
[英]How can I fix a “not a function” JavaScript error in Firefox's console?
[英]How to fix this error in this code for chrome's console?
我正在嘗試使用chrome的控制台,但出現此錯誤。
我幾乎沒有使用chrome控制台的經驗,因此請嘗試向我詳細說明解決方案。
var hatIds = [362081769, 19027209] //This is the Ids of the hats
var PriceWanting = 1500 //This is the price
var Loop = setInterval(function(){
for (var Id in hatIds) {
var hatLink = "https://m.roblox.com/items/" + hatIds[Id] + "/privatesales"
$.get(hatLink,function(data){
var Regex = /\<span class="currency-robux">([\d,]+)\<\/span\>/
var PriceSelling = data.match(Regex)[1]
PriceSelling = Number(PriceSelling.replace(",",""))
if (PriceSelling <= PriceWanting) {
var Regex2 = /<a href="\/Catalog\/VerifyTransfer\DuserAssetOptionId=([\d,]+)\Damp;expectedPrice=([\d,]+)">/
var HatBuyId = data.match(Regex2)[1]
var HatBuyLink = "http://m.roblox.com/Catalog/VerifyTransfer?userAssetOptionId=" + HatBuyId + "&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 = HatBuyLink;
document.body.innerHTML = "";
document.body.appendChild(Explorer);
clearInterval(Loop)
}
});
}
console.log("!")
},0)
錯誤信息:
Uncaught TypeError: Cannot read property '1' of null
at Object.success (<anonymous>:10:61)
at o (jquery-1.7.2.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.7.2.min.js:2)
at w (jquery-1.7.2.min.js:4)
at XMLHttpRequest.d (jquery-1.7.2.min.js:4)
此錯誤消息是什么意思?
我在使用chrome的控制台方面經驗不是很豐富,這是我嘗試使用的其他人的google代碼。
該程序應該做的是轉到ID提供的鏈接,我提供了Roblox的標准化鏈接系統。 該鏈接是項目鏈接。 我試圖通過反復檢查價格是否足夠低並購買該商品來在Roblox上以低價購買這些商品。
通過單擊該錯誤,您將從錯誤發生的那一行中得到...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.