Leo Liu said:
It would be great if you can share your insight into the mechanism of capacitor! I am a bit confused now, haha.
Besides, does circuit work like water pipe? If it does then I guess once an electron enters the electric field of a capacitor, it will feel a force and will subsequently pass it on to the adjacent electron in the circuit. Thus, I think emf does work to counteract this force, rather than the field outside the capacitor (which DNE ideally). Please correct if I am wrong!
It might help to have a read through
Feynman's bit on this for the full rundown, since I don't think I can offer much in the way of insight

.
For electric currents, we have the continuity equation ##\nabla \cdot \vec{J} = -\frac{\partial \rho}{\partial t}##. If we take a surface completely enclosing the capacitor, then the total charge in this region must not change with time, and we deduce that the current in equals the current out (N.B. inside the capacitor we can also define a
displacement current; we call the displacement field ##\vec{D} = \epsilon \vec{E} + \vec{P}## and the displacement current density ##\vec{J}_D = \epsilon \frac{\partial E}{\partial t}##, so that the continuity equation remains valid everywhere). I think that in
physical terms we can imagine that electrons arriving at the negative plate repel electrons on the positive plate, since in reality the E field will penetrate at least a little into the plates.
You mention the hydraulic analogy for current; it's good in some respects, but not completely. It's good in the sense that a flow of liquid is a good way to understand the continuity equation (i.e. volume of liquid into a pipe equals volume out, if it's incompressible).
However, in water pipes, each section of water exerts a contact force on adjacent sections of water. This does not happen with charge carriers in an ideal circuit! You can think of the sea of charge carriers a bit like an ideal gas, in that there is no interaction between them. The net E field inside the wire is zero, concretely because of Gauss' theorem but loosely because the sum of the forces on anyone charge carrier from the mobile charge carriers and positive cores in the wire is zero.
This just means that in an ideal wire, the charge carriers maintain their kinetic energy and no work is done on them. In some components, however, there
is a non-zero electric field. In a resistor, the current density is related to the electric field by ##\vec{J} = \sigma \vec{E}##. We note that if there is any current flowing through, there will be a voltage drop across the terminals. Where does this electric field come from physically? It is due to surface charges on the wire. The charge carriers are crashing into ions in the resistor, transferring and losing their energy. This is made up for by the positive work done by the electric field, so that they maintain loosely a constant kinetic energy.
And in a battery, you also have an electric field from the positive to negative plate. There ##-\int \vec{E} \cdot d\vec{x}## is the voltage across the terminals and the chemical force does work against the electric field in order to raise the electric potential of the charge carriers.