阅读背景:

React-Native:如果对象未定义,则传递if语句

来源:互联网 

So I have a small login to an API and my problem now is that if the login didn't worked, I am displaying an alert message. But when I am passing the good user I'm getting that the error object res.errors[0] is undefined (which of course is true). What is a good way to remake this code to work on both?So I have a small login to an API and my proble




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: