如何在Google搜索框中设置输入框文字?

时间:2019-04-20 11:47:32

标签: jquery firefox google-chrome-extension

google搜索页面具有以下代码,为什么下面的分配不起作用?我通过firefox扩展程序对其进行了测试。

$(".gLFyf.gsfi").val("12345");

input class =“ gLFyf gsfi” maxlength =“ 2048” name =“ q” type =“ text” jsaction =“ paste:puy29d” aria-autocomplete =“ both” aria-haspopup =“ false” autocapitalize =“ off “ autocomplete =” off“ autocorrect =” off“ role =” combobox“ spellcheck =” false“ title =”搜索“ value =”香蕉“ aria-label =”搜索“

https://www.google.com/search?q=banana&rlz=1C1CHMO_enHK655HK656&oq=banana&aqs=chrome..69i57j0l5.956j0j8&sourceid=chrome&ie=UTF-8

0 个答案:

没有答案