var str = 'add<a>daad</a><p>fsdada</p>' str.replace(/<[^<>]+>/g,'') 转载于:https://www.cnblogs.com/weixuechao/p/11136506.html