This paper focuses on the observer-based controller design issue for a class of discrete-time networked nonlinear systems. Due to the stochastic effects, the switching between subsystems occurs. The persistent dwell-time switching mechanism, which is more general than dwell-time switching and average dwell-time switching mechanisms, can well describe these switching cases with both fast and slow switchings. Furthermore, there is packet dropout during data transmission, which is described by Bernoulli white sequence, and a corresponding mechanism is used to compensate for the impact of packet dropout. Then based on the Lyapunov function approach, some sufficient conditions for mean-square exponentially stable and an expected performance are derived. Finally, an illustrative example that demonstrates the superiority and feasibility of the proposed method is given.