Spencer Dinwiddie scored 30 points to lead the Brooklyn Nets to a 105-103 win over the New York Knicks in the Battle of the Boroughs.