<script type="text/javascript"> var str = "<p style=color:#FF0000>恩恩,就是就是</p>"; var a = str.replace(/<[^>]+>/g,""); alert(a); </script>