没搜到就写了一个,也许已经有了只是我没发现。 https://github.com/jysperm/china id card validator https://www.npmjs.com/package/china id card validator