final String data=(关联的activity类)getActivity().getData(); getData();自定义的方法 转载于:https://www.cnblogs.com/jianxin-lilang/p/5493253.html