In an issue of Marvel Adventures, at the end of a Let's You and Him Fight Spidey says, "It was a textbook superhero misunderstanding battle. Happens all the time! Luckily, this is the part where we make up for it by working together to stop her."
This actually happens a lot. Nocturne in Exiles refers to that as an "unwritten rule of superhero team ups" and Robbie from Nova is disappointed that Darkhawk and his brother didn't do this.
Zombies Calling by Faith Erin Hicks is built around the main character being savvy to the "rules" of zombie movies.
In Alan Moore and Dave Gibbons' Watchmen,Adrian Veidt, aka Ozymandias, declares that he is not a villain from a Republic Films serial and therefore had already completed his plan 35 minutes before beginning his Breaking Speech.
Also, referring to his first meeting with the Comedian (where they fought before realizing they were on the same team), Adrian comments on how common a misunderstanding this is in their chosen profession. This is a reference particularly to Marvel heroes, who will ALWAYS battle EACH OTHER upon first meeting.
In The Sandman, Morpheus is possibly one of the most genre savvy entities in the whole universe. As the Prince of Stories, he knows that life literally imitates art (and vice versa) and is more than capable of controlling it. While teaming up with John Constantine to enter a house haunted by renegade dreams, Constantine shows some genre savviness himself, recalling what happens to people in horror movies when they split up. He asks Morpheus for reassurance that they'll stick together.
Batwing: Where are you headed, Gorilla Girl? Gorilla Girl: Home. I asked them to put me in the reserves, and they did. Batwing: But you did such a good job against the Skrulls! Gorilla Girl: Yeah, Batwing... and I came out alive, which is practically a miracle. I turn into a gorilla, I'm black, I'm female, and nobody's ever heard of me. I might as well have "Cannon Fodder" stamped on my forehead. You can keep pushing your luck if you want, but I'm getting out while I'm still in one piece. Vaya con dios, kids.
In Return To Wonderland, Calie is nearly raped by The Mad Hatter, but she gets the upper hand and knocks him out. She declares that she will not repeat the mistake that girls usually make in horror movies (knocking out the bad guy, then leaving the room), and continues the beatdown on Hatter until pretty much all of his bones are broken. It doesn't stop him from coming back. The inhabitants of Wonderland are eternal and eventually reappear every time they die, but Calie didn't know that.
In Ultimate Spider-Man, Bolivar Trask demonstrates this when he asks if the stasis field in the lab he's in can contain Venom. When he's told that it can, he says that he's seen King Kong, and so will be leaving.
In the 1991 Marvel Year In Review, Greg Salinger (the second Foolkiller) is interviewed about the activities of his successor, Kurt Gerhardt. Salinger opens by stating that Gerhardt's father had been killed by muggers. When the interviewer inquires as to whether this was the motive for Gerhardt's vigilante actions, Salinger responds by saying "Don't be so cliche".