我尝试通过写作来制作网页
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
没有呢?有什么我做错了吗?我正在使用火狐。