<分区>
我想尝试在 Chrome 的控制台面板中设置属性。
但不使用鼠标。像这样的例子: https://developers.google.com/web/updates/2015/08/edit-html-in-the-console-panel
我只想用命令写JS-CODE,例如:
document.querySelectorAll(".serial-number").setAttribute("Value","dummy");
在控制台面板 Chrome 中,此函数 setAttribute 不可用。请问有没有其他方法可以通过设置属性来编写代码?