Suppose that $\mathbf{J}$ is alternating current and its intrinsic frequency is $\omega$, i.e. $\mathbf{J}(\mathbf{r}',t)=\mathbf{J}(\mathbf{r}')e^{-i\omega t}$ , and $\rho$ is charge density. Then my textbook(one Chinese book, no English version, it's called 《电动力学》and written by 郭硕鸿) says they satisfy the law of conservation of charge, so that is $$ i\omega\rho=\nabla\cdot\mathbf{J} \tag{1} $$
I know the continuity equation is $$ -\frac{\partial \rho}{\partial t}=\nabla\cdot\mathbf{J} $$ and it could be derived from the fourth Maxwell's equation. I have tried my best to deduce the equation $(1)$, but I faild.
Here, $\nabla\cdot\mathbf{J}(r',t)=e^{-i\omega t}\nabla\cdot\mathbf{J}(r')$, and from that equation I know $-e^{i\omega t}\frac{\partial \rho}{\partial t}=\nabla\cdot\mathbf{J}(r',t)$, however, I don't know how to do from this.