Display text file in JavaScript

后端 未结 2 634
耶瑟儿~
耶瑟儿~ 2020-12-31 15:12

What code should I use to display the contents of a plain-text .txt file in JavaScript? I want the text to scroll on screen in the active window.

Thanks in advance!<

2条回答
  •  孤城傲影
    2020-12-31 15:41

    To get the text to display with new lines etc, use a

     or a