参考:https://blog.youkuaiyun.com/codehxy/article/details/78471660 另外:getFragmentManager().popBackStack();也可以实现关闭当前fragment作用