移除一个 self.navigationController?.viewControllers.removeAll(where: {$0.classForCoder == JYRetrieveVerificationCodeController.self})
移除多个:如果用remove 必须下面这样写
self.navigationController?.viewControllers.removeAll(where: {$0.classForCoder == JYShopReviewRejectedController.self || $0.classForCoder == JYShopCertificationController.self || $0.classForCoder == JYShopReviewSwitchController.self })