为什么 $("input").first() 不适用于 Google 表单?
Why does $("input").first() not work on Google Forms?
我在使用 this Google form 进行 Selenium 练习时,意识到我无法 select 使用 $("input").first()[=14= 的第一个输入字段]
我使用网络浏览器 (Firefox) 控制台工具对此进行了验证。当我尝试从那里 select 输入字段时,我会收到控制台消息:
$("input").first()
TypeError: $(...).first is not a function
我知道我可以 select 使用它的 id 的字段,class,等等,但我只是对为什么 .first() 不起作用感到困惑。
并不是说 .first
不起作用,而是 $()
不是 return 您认为应该 return 的样子。 firefox 控制台有一个名为 $
的函数,尽管名称如此,但它与 jQuery
不同。
此处提供更多详细信息:
https://developer.mozilla.org/en-US/docs/Tools/Web_Console/The_command_line_interpreter
我在使用 this Google form 进行 Selenium 练习时,意识到我无法 select 使用 $("input").first()[=14= 的第一个输入字段]
我使用网络浏览器 (Firefox) 控制台工具对此进行了验证。当我尝试从那里 select 输入字段时,我会收到控制台消息:
$("input").first()
TypeError: $(...).first is not a function
我知道我可以 select 使用它的 id 的字段,class,等等,但我只是对为什么 .first() 不起作用感到困惑。
并不是说 .first
不起作用,而是 $()
不是 return 您认为应该 return 的样子。 firefox 控制台有一个名为 $
的函数,尽管名称如此,但它与 jQuery
不同。
此处提供更多详细信息:
https://developer.mozilla.org/en-US/docs/Tools/Web_Console/The_command_line_interpreter