Use $0 in the console to refer tothie element --开发者工具F12JS代码显示不全问题解决

今天F12看一个代码为什么执行不了,但是发现JS里没有把我代码显示全。如图:
Use $0 in the console to refer tothie element --开发者工具F12JS代码显示不全问题解决
后面出现…和 $0
Use $0 in the console to refer tothie element --开发者工具F12JS代码显示不全问题解决
鼠标悬浮在上面发现:Use $0 in the console to refer tothie element。

意思就是:在控制台中使用$0来引用此元素。

我们在控制台上输入$0
Use $0 in the console to refer tothie element --开发者工具F12JS代码显示不全问题解决
发现代码就跑到控制台上了。但是显示还是不全。

解决办法:

一、右键选择Edit as HTML

Use $0 in the console to refer tothie element --开发者工具F12JS代码显示不全问题解决

二、滑动滚轮:到最下面找到你想要的代码

这里点击后代码会像卡片一样悬浮在上面。
Use $0 in the console to refer tothie element --开发者工具F12JS代码显示不全问题解决
这里记住,不要点击右边的滑块,容易退出编辑模式。如果发现还是没有想要的饿代码。刷新页面多试几次就可以。