This article is concerned with the problem of observer-based dynamic event-triggered control for a networked control system (NCS) under a class of power-constrained denial-of-service (DoS) attacks that aim at impeding the network communication from time to time. First, by carefully modeling such DoS attacks as aperiodic pulse-width-modulated (PWM) jamming signals, a switching observer, adapting to the DoS attacks, is delicately constructed to deal with the unavailability of full-state information. Second, to economize the limited bandwidth resources, a dynamic event-triggered communication scheme is designed under the aperiodic DoS jamming attacks, whose duration and frequency are assumed to be restricted. Third, a switching system model with artificial state delay is formulated, which characterizes the effects of the aperiodic DoS attacks and event-triggered communication scheme in a unified framework. Then, the asymptotic stability analysis and controller/observer synthesis conditions of the resulting switching system are obtained by using a piecewise Lyapunov-Krasovskii functional approach. Furthermore, a co-design method of the dynamic triggering parameters, controller, and observer gains is presented. Finally, an example is employed to verify the effectiveness of the obtained results.