The National Immigration Administration counts it as: at the time of application and for the 4 consecutive years before it, you must simultaneously hold the qualifying employing unit, position (title), and residence period. A change in any of these must meet the relevant conditions.
Nationwide (all cities)
A bundle, not a count
The '4 years of continuous employment' is counted as a package of conditions that must all hold at the same time, not just a count of calendar years.
The employment route condition
Under the Administrative Measures for Approval of Permanent Residence of Foreigners, the employment route requires: holding a senior position (deputy general manager, deputy factory director, or above) or a deputy senior professional title (associate professor, associate researcher, or above) with equivalent treatment; having served continuously for 4 years; having resided in China for a cumulative total of at least 3 of those 4 years; and having a good tax record.
The NIA explanation
The National Immigration Administration further explains the 'continuous' requirement: at the time of application and for the 4 consecutive years before it, the applicant must simultaneously satisfy the conditions relating to the employing unit, the position (title), and the residence period. If the applicant changes employer, position, or title during that period, the change must meet the relevant conditions.
Three things at once
So 'continuous' bundles three things at once: the unit you work for, the position or title you hold, and your residence status. All three must hold together for the 4 years; any break in one of them breaks the continuity. The precise interpretation for your situation is confirmed by the local exit-entry administration where you apply.