Fragment 中没有getIntent方法,需要通过Activity来。 可以这样实现: Intent intent = getActivity().getIntent(); 这样就可以在fragment中获取Activity的Intent.
確定! 回上一頁