Novak Djokovic flirted with disaster against Kevin Anderson at Wimbledon Tuesday but the defending champion finally overcame the towering South African to reach the quarterfinals.