在 firefox dev console 中只显示 [object Request](没有扩展选项)
In firefox dev console only [object Request] is displayed (no options to expand)
当记录 service worker 的提取 event.request 时,在 firefox 的网络控制台中仅显示 [object Request]
。找不到任何选项来扩展该对象或以任何方式与其交互。
在chrome中显示为Request {method: "GET", url: ...}
,有选项可以展开。
有没有办法在 Firefox 中获得类似的功能?
不要使用 console.log(obj)
,
使用 console.log(JSON.parse(JSON.stringify(obj)))
根据 MDN 的网络文档。
我应该在提交问题之前阅读它们,但这可能会对其他人有所帮助。
当记录 service worker 的提取 event.request 时,在 firefox 的网络控制台中仅显示 [object Request]
。找不到任何选项来扩展该对象或以任何方式与其交互。
在chrome中显示为Request {method: "GET", url: ...}
,有选项可以展开。
有没有办法在 Firefox 中获得类似的功能?
不要使用 console.log(obj)
,
使用 console.log(JSON.parse(JSON.stringify(obj)))
根据 MDN 的网络文档。
我应该在提交问题之前阅读它们,但这可能会对其他人有所帮助。