【发布时间】:2021-06-25 18:46:11
【问题描述】:
来自 Chrome 开发工具示例 https://googlechrome.github.io/devtools-samples/debug-js/get-started
在inputsAreEmpty函数的第一行添加断点,inputsAreEmpty()进入Watch,inputsAreEmpty()在watch中会调用。
如果将日志插入inputsAreEmpty函数,日志会打印更多次,为什么会这样?
【问题讨论】:
-
你的意思是你有
inputsAreEmpty()作为Watch 表达式?
标签: javascript google-chrome-devtools