As we work the DOM, we also may want to apply JavaScript to it. Like: get a node and run some code to modify it, to see the result. Here are few tips to travel between the Elements tab and the console.
在我们处理 DOM 时,我们可能还希望对其应用 JavaScript。例如:获取一个节点并运行一些代码来修改它,以查看结果。以下是在元素(Elements)选项卡和控制台(Console)之间切换的一些技巧。
Try to run some code, should be able to jam the signal Why didn't you think of that?
Instead he or she will read the public API, write some code, run it, and then, if it doesn't work, search for the exception's message on Stack Overflow.
Requests to run sandboxed code are routed by solution affinity.
运行沙盒代码请求由解决方案相似性传递。
Try to edit and run the code in this book locally.
尝试在本地编辑和运行本书的代码。
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.