【问题标题】:View elements using javascript codes in vimperator?在 vimperator 中使用 javascript 代码查看元素?
【发布时间】:2013-04-27 09:16:31
【问题描述】:

我尝试在 Vimperator 中使用这样的命令:

echo document.getElementsByTagName("p"); 

在vimperator中查看标签名称为<p>的节点。但是,结果是这样的:

我也在 Firebug 中尝试了相同的命令。结果如下:

Vimperator 的结果为空,而 Firebug 的结果不为空。有谁知道为什么 Vimperator 会回显长度为零的 Collection?

【问题讨论】:

    标签: firefox firebug vimperator


    【解决方案1】:

    查看相关问题:How do I getElementByID in Vimperator?。简短的回答是改用echo window.content.window.document.getElementsByTagName("p")

    【讨论】:

      猜你喜欢
      • 2014-03-14
      • 2016-07-07
      • 2017-11-02
      • 1970-01-01
      • 1970-01-01
      • 2013-06-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-29
      相关资源
      最近更新 更多