If you look in John 6:64 it says, "'But there are some of you who do not believe.' (For Jesus knew from the beginning who those were who would not believe, and who it was who would betray Him.) Something I noticed about this verse is that Jesus knew that He would be betrayed by Judas, and yet He still loved him.
Jesus knew all along what would happen, and yet he did not have hate, or anger towards anyone. This is definitely something that we need to learn from. If someone does something to you, or hurts you, or tells your secrets and betrays you, you need to always remember the example that Jesus gave us when he showed love to the person who He knew would betray Him. In 1 Corinthians 13:7 it says, "Love bears all things, believes all things, hopes all things, endures all things." As Christians, we need to remember that no one is perfect, and endure the things that people put us through sometimes. Whether they're on purpose or not, we always need to remember that we should love them, Just as Jesus loved us. John 13:34, "A new commandment I give to you, that you love one another: just as I have loved you, you also are to love one another."