In the first case, a plane on a belt that matches only the planes forward speed though the air, seems obvious to most that yes, the plane can takeoff. Some think the plane can't move forward with a belt going backwards at the same speed and, well, they're just wrong.
The belt matching the rotational speed of the wheels introduces a whole 'nother question and must be analyzed and particulars determined before an answer can be decided.