DALLAS -- O.J. Mayo and Vince Carter combined for 52 points as the Dallas Mavericks escaped Wednesday night with a 114-111 victory over the New York Knicks at American Airlines Center.
New York (7-2) had a chance to pull out the win with a furious rally down the stretch, but Carmelo Anthony's jumper with less than five seconds left came up short.
Mayo scored 27, with Carter adding 25 off the bench. The Mavericks (7-6) needed the win to stay above .500 -- they haven't been below this season -- with the Los Angeles Lakers coming to town Saturday.
New York was paced by Anthony, who scored 19 of his 23 in the second half. The Knicks have lost both of their games on the road this season, the other coming Nov. 16 at Memphis. New York is at Houston on Friday.
Darren Collison snapped out of a mini-slump with 19 points and seven assists for the Mavericks. Dallas rookie reserve Jae Crowder knocked down three 3-pointers and scored 12.
The Mavericks overcame an eight-point deficit in the third quarter with 20-8 run going into the fourth. The Knicks got somewhat sloppy with the ball and Dallas took advantage.
Mayo continued to attack and Crowder made his presence felt. The second-rounder drilled a 3-pointer to give Dallas its first lead (80-77) since the first quarter.
The Mavericks continued to apply the heat in the final period, pushing their lead to 12 in the first five minutes. Dallas did so with Mayo on the bench, but Carter and Crowder more than picked up the slack.
New York got within four (105-101) with four minutes remaining before Carter answered with a 3-pointer. The Knicks weren't done. Tyson Chandler (21 points and 13 rebounds) helped fuel a finishing kick by New York that came up short.
Knicks guard Jason Kidd had a season-high 17 points in his first game in Dallas since leaving the Mavericks in free agency this past offseason.
New York went into halftime up 54-49. The Knicks were a study in ball movement throughout the first half, shooting 50 percent and piling up 14 assists.
Five of the visitors scored at least six by the break and Anthony wasn't included in that group. Chandler had 12 points, Raymond Felton added 10 and Kidd had nine. Rasheed Wallace provided a spark in the second quarter with six points and three rebounds.
The Mavericks played catch up throughout but finished the second quarter strong. O.J. Mayo had 13 points at the half, while Vince Carter scored 11 -- all in the second period.
The Knicks opened fast, seizing control of the game with an 8-3 surge in the first two minutes. Kidd was especially active early at both ends as New York gave its sizable contingent of fans in the stands plenty to cheer about.
Anthony and Felton also got into the act as New York continued to push tempo. Chandler gave the Knicks their first double-digit lead at 21-11 with a layup midway through the first quarter.
The Mavericks found their stroke behind Mayo and quickly carved into the New York lead. Mayo's driving basket capped an 11-0 run and gave Dallas a 24-23 edge late in the first.
The Knicks finished the period with a 5-0 spurt to take an advantage into the second quarter.
NOTES: Dallas has now won 19 of the last 23 in the series, but the Knicks beat the Mavs earlier this month. ... Forward Troy Murphy made his first start for Dallas in place of Elton Brand. Murphy, though, left game with an upper respiratory illness in first half and didn't return.