This study used descriptive methods to analyze the changes in the degree of managing public health needs in Zhejiang and Shanghai, and used methods such as spearman correlation and regression analysis, through systematic collection of the sensitive indicators for tertiary prevention of infectious diseases released by the government of Zhejiang and Shanghai, to analyze the relationship between grasping the health needs and the incidence of infectious diseases. This paper compared and analyzed the differences in the degree of grasping the health needs level for infectious diseases in Zhejiang and Shanghai, explored the significance of grasping health needs in both places and verified the feasibility of its quantitative methods. The results showed that the degree of grasping the public health needs health of infectious diseases in Zhejiang and Shanghai increased from 3.9% in 2004 to 34.8% in 2017, and Shanghai increased from 35.1% to 49.8%. There was a negative influence relationship(P<0.01), and the correlation coefficients were -0.867 and -0.851, respectively. Therefore, a suitable infectious disease health system should be able to accurately grasp the public health needs. Shanghai’s grasp of public health needs was better than Zhejiang’s health outcomes, but the degree of grasping the needs for the two places was still insufficient.