js / ajax 成功提交后怎么跳转到另外一个页面?

把success那段改成
 success : function (r) {
                    if ( r.status == 'error' ){
                        alert(msg[r.msgno]);
                    } else if (r.status == 'success') {
                        alert(msg[r.msgno]);
                        //location.reload(true);
                        window.location.href="http://www.hao123.com";//你可以跟换里面的网址,以便成功后跳转
                    }
                },
原文地址:https://www.cnblogs.com/zhujiabin/p/4959273.html