Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Rails3 服务器来管理用户。当我登录我的骨干客户端应用程序时,我连接到服务器执行 model.fetch 操作。登录不正确时如何正确管理?我的意思是当用户名和密码与 Rails 服务器中的数据库不匹配时。谢谢!
this.model.fetch({ success: function (model, response) { //TODO: Success //Your response JSON object can also have some authentication status }, error: function (model, response) { //TODO: error } });