JSONObject中optString和getString等的区别

optString会在得不到你想要的值时候返回空字符串”“,而getString会抛出异常。

猜你喜欢

转载自blog.csdn.net/u011368551/article/details/80503593