Heim  >  Fragen und Antworten  >  Hauptteil

php - Wie springe ich in JQuery zu einer Seite?

$.post(url,{name:'xxx',psw:'xxx'}, function(result)
           {
                if (result)
                {
                    //跳转至php页面 
                }
           }, 'json'); 
           
如何跳转至php页面?
伊谢尔伦伊谢尔伦2702 Tage vor464

Antworte allen(6)Ich werde antworten

  • 天蓬老师

    天蓬老师2017-05-27 17:45:14

    window.location.href="";

    Antwort
    0
  • 仅有的幸福

    仅有的幸福2017-05-27 17:45:14

    window.location = "http://www.42du.cn";

    Antwort
    0
  • 滿天的星座

    滿天的星座2017-05-27 17:45:14

    window.location.href = "";

    Antwort
    0
  • phpcn_u1582

    phpcn_u15822017-05-27 17:45:14

    Window.open('')

    Antwort
    0
  • PHP中文网

    PHP中文网2017-05-27 17:45:14

    新开页面:Window.open('url');
    当前页面打开:window.location.href="url";

    Antwort
    0
  • 滿天的星座

    滿天的星座2017-05-27 17:45:14

    1. window.open

    2. window.localtion, 这其实是Location对象

    Antwort
    0
  • StornierenAntwort