How to redirect through 'POST' method using Javascript?

前端 未结 11 1123
说谎
说谎 2020-12-05 10:05

I\'ve queried and doesn\'t work out what I\'ve found. Is there any way to redirect to give url with POST method using Javascript or jquery?

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 10:43

    There is no way to do so.

    Even a a element Sstrikes the GET.

    What you can do is make a Ajax request to post and in on-success use window.open().

提交回复
热议问题