What does status=canceled for a resource mean in Chrome Developer Tools?

前端 未结 30 2028
温柔的废话
温柔的废话 2020-11-22 11:13

What would cause a page to be canceled? I have a screenshot of the Chrome Developer Tools.

\"Canceled

30条回答
  •  爱一瞬间的悲伤
    2020-11-22 11:47

    NB: Make sure you don't have any wrapping form elements.

    I had a similar issue where my button with onclick={} was wrapped in a form element. When clicking the button the form is also submitted, and that messed it all up...

    This answer will probably never be read by anyone, but I figured why not write it :)

提交回复
热议问题