我正在尝试使用以下命令替换JavaScript:
r = "I\nam\nhere"; s = r.replace("\n"," ");
但不是给我
我在这里
作为值s,它返回相同的值.
s
问题出在哪里?
javascript replace
javascript ×1
replace ×1