用正則表達(dá)式<script type="text/javascript">var a = "<p>32323232</p>";var b = a.replace(/<.*?>/ig,"");alert(b);</script>