JR Smith poured in 22 points off the bench for the Knicks, while OJ Mayo led the Mavericks with 23 points.
The win gave the Knicks their best start since 1993.
LeBron James was one assist from a triple-double as he ensured the Miami Heat registered their fourth straight win, 95-89 over the Atlanta Hawks.
James had 21 points, 11 rebounds and nine assists but perhaps his key contribution was a jump shot in the closing moments which killed off an Atlanta rally led by two Jeff Teague three-pointers.
Chris Bosh scored 24 points for the Heat in the absence of the unwell Dwayne Wade, while Teague had 20 points and 11 assists for the Hawks.
The Los Angeles Lakers reacted to the dismissal of coach Mike Brown by beating the Golden State Warriors 101-77.
Kobe Bryant led the way with 27 points for the Lakers, who had Bernie Bickerstaff in charge after Brown had been sacked earlier in the day.
Anthony Davis announced his return to health in style as he led the New Orleans Hornets to a 107-99 win over the Charlotte Bobcats.
Freshly back from concussion, Davis scored 23 points and grabbed 11 rebounds, while Ryan Anderson led the attack with 25 points.
Chase Budinger scored 18 points, including the game-clinching lay-up in the last second, as the Minnesota Timberwolves beat the Indiana Pacers 96-94.
Serge Ibaka's career-best 25 points saw the Oklahoma City Thunder to a 105-94 win over the Detroit Pistons while Evan Turner poured in 25 points to help the Philadelphia 76ers down the Boston Celtics 106-100.
The Brooklyn Nets overwhelmed the Orlando Magic 107-68 in a game they never trailed, the Memphis Grizzlies saw off the Houston Rockets 93-85 and the Milwaukee Bucks beat the Washington Wizards 101-91.
The Denver Nuggets overcame the Utah Jazz 104-84, the San Antonio Spurs were 97-86 winners over the Sacramento Kings while the Phoenix Suns edged out the Cleveland Cavaliers 107-105.