我想使用javascript或jquery用字符串更新whatsapp网站的搜索输入,以便它显示所有找到的联系人的列表。就像我输入搜索联系人的时间一样。基本的js和jquery似乎不起作用。像innertext,innerhtml,text,html。我尝试将焦点与execCommand一起使用。
document.querySelector("inputSelector").focus();
document.execCommand('insertText', false, "name");