A liquid-dispensing device includes a liquid-containing unit, a flexible tube, a nozzle, and a cam mechanism. The flexible tube is connected to the liquid-containing unit. The nozzle is connected to the flexible tube. The cam mechanism includes first and second cams, and first and second cam followers. The first and second cams are co-rotatable. Each of the first and second cam followers is driven by a respective one of the first and second cams to move to a squeezing position, where each of the first and second cam followers exerts a squeezing force on the flexible tube.