TORONTO -- Rajai Davis had a big day with the bat, equalling his career high with five runs batted in Sunday.

But it was a play he made with his glove that had the Rogers Centre buzzing.

The Toronto Blue Jays' left-fielder leaped above the wall to catch what could have been a two-run homer by Casey McGehee in the seventh inning to help blunt a New York Yankees' comeback and hold on to a 10-7 win.

The Blue Jays needed everything they got from Davis to hold on for a victory over the Yankees, not only to salvage a win from the three-game series with the American League East leaders but to end a five-game losing string.

"That was amazing," Davis said. "It's something you think about, you dream about doing something that at the highest level, especially here at the major-league level. Just to do it here was amazing.

"It was just nice to help us win and keep the ball in the park."

Toronto manager John Farrell was also impressed with Davis' athletic play in the field.

"Rajai had a big day, I don't know how many people make the catch he did," said Farrell. "It was just an outstanding timing play. In the end we had enough to hang on. As deep and as explosive as that lineup is they came at us in the sixth and seventh innings. A much needed win. A good one."

Edwin Encarnacion also had three hits, including a two-run homer, for the Blue Jays.

Davis and Encarnacion helped left-hander J.A. Happ (1-1) pick up his first win in his second start since he was acquired by the Jays in a deal with Houston on July 20. His four previous outings before last Tuesday's losing start at Tampa Bay had all been in relief.

"We had some great individual performances," Happ said. "Rajai had a great game today. It was nice to be pitching with that happening."

Happ allowed four runs in 5 2/3 innings on six hits that included home runs by Derek Jeter and Robinson Cano.

Casey Janssen pitched the ninth for his 15th save.

The Blue Jays scored seven runs and had nine hits, including Encarnacion's homer, against New York right-hander Phil Hughes (11-10), in four innings.

"He just really missed location with his fastball, just too many of them in the middle of the plate today and they hit them hard," said Yankees manager Joe Girardi.

"That was the biggest thing, just a lot of fastballs over the middle of the plate," Hughes said. "I was trying to get the ball down and away and a lot of pitches were running back."

"We've been in a tough stretch," Farrell said. "A win always lets people take a deep breath."

The Blue Jays took a 1-0 lead in the first inning when Encarnacion doubled with two out and scored on a single by David Cooper.

The Blue Jays moved ahead 7-0 in the fourth. Moises Sierra singled and scored on a double by Jeff Mathis.

Mathis took third after Yan Gomes flied out to right and Anthony Gose walked with one out. Davis doubled with two out to score two more runs.

Davis stole third and scored on Mike McCoy's infield hit to deep shortstop. Encarnacion followed with his 30th homer of the season.

It was a rare offensive display by a Blue Jays lineup recently depleted by injuries.

"I think we have a leader in Encarnacion," Davis said. "He's been a great offensive threat all year long, we're just trying to put the pieces together around him with what we have and playing as hard as we can."

Happ took a one-hitter into the fifth but Andruw Jones doubled with one out and Casey McGehee doubled with two out to score a run.

In the fifth, Davis drove in three more runs with a two-out double against Ryota Igarashi who had been called up from triple-A Scranton Wilkes-Barre after CC Sabathia was put on the disabled list on Saturday with a sore elbow.

Sierra started the fifth with a single and was forced at second by Mathis. Gomes walked and with two out Adeiny Hechavarria hit an infield single to short to load the bases for Davis.

Jeter hit his ninth homer of the season with one out in the sixth. Nick Swisher singled and Cano hit his 25th homer of the season with two out to cut the lead to 10-4 and right-hander Brad Lincoln replaced Happ.

"I felt fine," Happ said. "You can't make mistakes in the zone and at the top of the zone to good hitters like that. It's frustrating because I thought I was making good pitches the whole game and I left a few up and got hurt with it."

Davis made his spectacular leaping catch to take away a possible two-run homer by McGehee for the first out of the seventh.

"Man, that was a heck of a catch," said McGehee. "I guess I've got to hit it a few feet further next time. I thought it was going to be right in front of the wall or just barely over. When I saw him turn his back I thought he gave up on it. Little did I know he was just timing it up."

Jeter doubled for a run and Swisher singled for another. Left-hander Darren Oliver replaced Lincoln and loaded the bases after he gave up a double to Mark Teixeira and hit Cano with a pitch. But the inning ended on a grounder to third by Jones.