optString和getString区别 optString(“key”)如果为空返回 “” ,不报异常。优点:并不会应为key值使程序错误 getString(“key”)如果为空,返回空指针异常。