JS中字符怎么加空格地点 地点 我想加空格 value= " 地点 " 在JS里直接赋值不行,应该怎么书写?[解决办法] <script> var str= "地点地点地点地点地点地点 "; str=str.replace(/地点/g, " 地点 ") alert(str); </script>