单项选择题

在javascript中,下列能实现在页面输出并换行的是()

A.document.writeln("hello")
B.document.write("hello\n")
C.document.write("hello")
D.document.writeln("hello\n")