文字でWebページを作ってみた
document.write("This is the first line \n And this is the second");
望ましい効果は次のとおりです。
This is the first line
And this is the second
しかし、私はこれを取得します:
This is the first line And this is the second
<br>
内部に書き込んでみましたが、うまくいきました。しかし、なぜエスケープを書くこと\n
ができなかったのでしょうか? 私が間違っていることはありますか?私はFirefoxを使用しています。