> For the complete documentation index, see [llms.txt](https://sunzsh.gitbook.io/xiaoshan.bug/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunzsh.gitbook.io/xiaoshan.bug/chrome-kai-fa-zhe-gong-ju-0-de-yong-tu.md).

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

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

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

我们在开发者工具里边

选中了哪个元素

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

那开始我看到了哈

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

然后有一天哈

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

什么意思呢

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

再回到这个 Console

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

大家看

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

value = 'test'

大家看！就可以了
