How do I redirect a page in jQuery?

后端 未结 3 1315
后悔当初
后悔当初 2021-01-05 14:55

How what data should I echo from the server to ajaxically redirect my page? Say, suppose this my jQuery:

$.ajax({
            type: \"POST\",
            url         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-05 15:41

    I don't know what you mean by "ajaxically redirect", but if you simply want the browser to redirect to another page, you can use window.location = 'http://wherever/you/want/to/go/';

提交回复
热议问题