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