str.replace(/<[^>]+>/g,""); 本文转自 https://blog.csdn.net/JunZhao09/article/details/108649418,如有侵权,请联系删除。