window.history.back() not working right in Chrome, works in Mozilla

前端 未结 1 1261
南旧
南旧 2021-01-26 20:55

I have 2 buttons Submit, which posts the data and gets back validation errors from the server, and a Cancel which calls window.history.back().

相关标签:
1条回答
  • 2021-01-26 21:41

    In case you ever need to use back again, the safe cross-browser option was to use history.go(-1);

    0 讨论(0)
提交回复
热议问题