我有以下腳本:jQuery的Get請求返回undefined
$.get("http://www.roblox.com/catalog/", function(onWebsite) {
console.log($(onWebsite).find(".name notranslate")[0])
});
出於某種原因,它返回未定義的,但如果你去指定並執行網頁:document.getElementsByClassName('name notranslate')[0]
,它將返回什麼,我希望它。我使用正確的語法嗎?
是'notranslate'一個元素? – Satpal
它在頁面上說:(在HTML中)「class =」名稱notranslate「」 –