# chrome开发者工具$0的用途

{% embed url="<https://v.douyin.com/r6pd6Rk/>" %}

{% embed url="<https://www.bilibili.com/video/BV16T4y1S78Z/>" %}

我们在开发者工具里边

选中了哪个元素

他后边都会有一个这个看：$0

那开始我看到了哈

但是我从来没细想过他有什么用

然后有一天哈

一个小伙伴在评论区里就说了一下这个 （评论找不到了）

什么意思呢

就是我们选中了哪个元素之后

再回到这个 Console

他就可以用 $0 代表这个元素

大家看

那我们再来试一下给它赋值哈

value = 'test'

大家看！就可以了


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/chrome-kai-fa-zhe-gong-ju-0-de-yong-tu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
