This paper investigates the problem of resilient control for cyber-physical systems (CPSs) described by T-S fuzzy models. In the presence of denial-of-service (DoS) attacks, information transmission over the communication network is prevented. Under this circumstance, the traditional control schemes which are proposed based on perfect measurements will be infeasible. To overcome this difficulty, with the utilization of an equivalent switching control method, a novel gain-switched observer-based resilient control scheme is proposed. According to whether the DoS attack is activated, two different controller synthesis conditions are given by combining the information of the tolerable DoS attacks. In addition, a quantitative relationship between the resilience against DoS attacks and the obtained disturbance attenuation level is revealed, which is helpful for balancing the tradeoff between the abilities to tolerate DoS attacks and attenuate the influence of external disturbance. Finally, simulation results are provided to verify the effectiveness of the proposed switching control scheme. (C) 2021 The Franklin Institute. Published by Elsevier Ltd. All rights reserved.