怎么样把字符串里的中文过滤掉?要代码[解决办法] <script type= "text/javascript "> var str = "abc中d文ef字 "; str = str.replace(/[\u4e00-\u9fa5]/gi, " "); alert(str); </script>