需要知道如何从登录页面重定向 [英] Need to know how to redirect from login page

查看:192
本文介绍了需要知道如何从登录页面重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Backbone.js和cordova创建Android应用程序,我们正在为我们的应用程序创建一个登录表单,对于登录我们正在使用ajax调用Web服务,任何人都可以说应该写入什么代码成功:Ajax函数的function(){------},以便在成功登录后重定向到另一个html页面----在先前感谢

I am using Backbone.js and cordova to create android app , we are creating a login form for our app, for login we are using ajax call to the web service , can any one say that what code should be written int the Success: function(){------} of Ajax function so that it redirect to another html page after successful login---- Thanks in Advance

推荐答案

function(){window.location.href =examplePage.html;}
function(){ window.location.href = "examplePage.html";}


这篇关于需要知道如何从登录页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆