Their starting pitcher failed to complete five innings. Their new reliever showed why his previous team got rid of him. They trailed by five runs and were down to their last nine outs.

Still, the Dodgers won. And the way they told it later, they never doubted it would happen.

"We actually talked about it in one of the pitching changes," Adrian Gonzalez said. "When we got together in the infield, we were like, 'We're not that far off, especially in this ballpark.' "

The Dodgers scored three runs in the seventh inning and four in the eighth to win for the 22nd time in 27 games, remaining in first place in the National League West with a 10-9 victory over the Toronto Blue Jays at hitter-friendly Rogers Centre.

Gonzalez hit a towering three-run home run in the eighth inning to move the Dodgers in front, 9-8. Andre Ethier immediately followed with a home run.

"There's been times, earlier in the season, where maybe we would have felt out of it," Chris Capuano said. "I don't think anybody felt out of it by the way they were going up there not giving away a single pitch. It's a different attitude, it's a great attitude."

Capuano was one of the primary reasons the Dodgers faced such a large deficit. He was charged with five runs and seven hits in 41/3 innings. He gave up two home runs and departed with the Dodgers behind, 5-2.

His replacement, newcomer Carlos Marmol, gave up three runs. The Dodgers were down, 8-3, after six innings.

The comeback started with Yasiel Puig's second infield single of the game, this one against reliever Brett Cecil. Puig was the first of six consecutive Dodgers to reach base.

Gonzalez singled. Hanley Ramirez walked. Ethier walked to push in a run.

Right-hander Dustin McGowan replaced Cecil but couldn't stop the surge. Mark Ellis singled to left field and drove in two runs. The deficit was cut to 8-6.