Why can't I expand this event object in the chrome console?

前端 未结 4 2186
情深已故
情深已故 2021-01-01 16:54

Simplified, what I\'m doing is running this in the console:

window.onbeforeunload = function (e) {
    console.log(e);
}

But in the console

4条回答
  •  死守一世寂寞
    2021-01-01 17:30

    I just came across this question with a problem I had where my API PUT request was showing as cancelled in my console tab in chrome dev tools and I was seeing the same behavior where I couldn't expand the object and the little i icon was showing next to the console entry. I decided to post this answer with a link to my question in case it might help anyone else.

    Api PUT request showing as "cancelled" with error message "TypeError: failed to fetch"

提交回复
热议问题