Facebook, Uncaught Error: Tried to get element with id of "%s" but it is not present on the page
Facebook, Uncaught Error: Tried to get element with id of "%s" but it is not present on the page
尝试在 Facebook 的浏览器控制台上执行简单的 JQuery 时出现以下错误。
Uncaught Error: Tried to get element with id of "%s" but it is not present on the page
这是 Facebook 引入的任何新限制吗?使用 document.getElementById 的相同查询工作正常。 Facebook 如何防止这种情况?
我在网上搜索了 FB 是否使用 JQuery 并了解到他们没有。所以这里的$
不是jQuery的dollar函数。
在控制台中输入 $
得到:
"function a(a){return g(a,typeof a==="string"?document.getElementById(a):a)}"
基于此,我认为您应该只传递 ID。不要在它前面加上 #
。
你可以试试这个:
$('group_mall_785863974804742');
尝试在 Facebook 的浏览器控制台上执行简单的 JQuery 时出现以下错误。
Uncaught Error: Tried to get element with id of "%s" but it is not present on the page
这是 Facebook 引入的任何新限制吗?使用 document.getElementById 的相同查询工作正常。 Facebook 如何防止这种情况?
我在网上搜索了 FB 是否使用 JQuery 并了解到他们没有。所以这里的$
不是jQuery的dollar函数。
在控制台中输入 $
得到:
"function a(a){return g(a,typeof a==="string"?document.getElementById(a):a)}"
基于此,我认为您应该只传递 ID。不要在它前面加上 #
。
你可以试试这个:
$('group_mall_785863974804742');