jsonObject.has()是干嘛的?
String jsonStr=new String(data);
try {
JSONObject jsonObject=new JSONObject(jsonStr);
if (jsonObject.has("fileUri")){
}
} catch (JSONException e) {
e.printStackTrace();
}
可以看出是通过使用Map.containsKey(key)方法来做出判断的。