这问题说出来就很尴尬..
<html> <body> <script type="text/javascript"> var str="Visit M"i"crosoft!" document.write(str.replace(/\"/g,"")) </script> </body> </html>上面的代码怎么就无法显示呢,我看也没什么毛病 var str="Visit Microsoft!" document.write(str.replace(/Microsoft/g,"")) 换成这个就没问题