DETROIT -

Matthew Stafford's 1-yard lunge over a pile of linemen with 12 seconds left and Calvin Johnson's 329 yards receiving lifted the Detroit Lions to a 31-30 comeback win over the Dallas Cowboys on Sunday.

Stafford threw a 22-yard pass to Johnson, who had the second-most yards receiving in NFL history, to set up his winning score. The quarterback seemed to catch his hometown Cowboys by surprise -- some of them appeared to expect him to spike the ball.

Johnson's total trails only the 336 yards receiving Flipper Anderson had for the Los Angeles Rams against New Orleans on Nov. 26, 1989 in a game that went into overtime.

The Lions (5-3) overcame four turnovers and a 10-point deficit in the fourth quarter against Dallas (4-4).

First Quarter
DET - TD, Matthew Stafford, 2-yard pass to Calvin Johnson (David Akers kick), 0:54

Second Quarter
DAL - FG, Dan Bailey, 53 yards, 5:39
DAL - TD, Tony Romo, 5-yard pass to Dez Bryant (Dan Bailey kick), 0:46

Third Quarter
DAL - FG, Dan Bailey, 53 yards, 3:02

Fourth Quarter
DET - FG, David Akers, 20 yards, 13:13
DAL - TD, Tony Romo, 60-yard pass to Terrance Williams (Dan Bailey kick), 11:32
DET - TD, Joique Bell, 1-yard run (David Akers kick), 7:38
DAL - TD, Tony Romo, 50-yard pass to Dez Bryant (Dan Bailey kick), 6:45
DET - TD, Reggie Bush, 1-yard run (David Akers kick), 3:33
DAL - FG, Dan Bailey, 44 yards, 1:02
DET - TD, Matthew Stafford, 1-yard run (David Akers kick), 0:12

Detroit's Ansah injures ankle

Detroit defensive end Ziggy Ansah has left Sunday's game against Dallas with an ankle injury.

Ansah was having his left leg looked at on the sideline during the first half. The Lions took him in the first round of this year's draft with the fifth overall pick.

Detroit defensive tackle Nick Fairley appeared to be favoring his left leg during the second quarter, and he eventually sat on the bench with a baseball hat on, although there was no immediate announcement of any injury.

Lions wide receiver Ryan Broyles left with an Achilles tendon injury, and cornerback Bill Bentley was sidelined with a knee injury.