Why doesn't javascript newlines work inside html?

后端 未结 13 2626
梦谈多话
梦谈多话 2020-12-06 12:08

So I have the following:


  
    
  
<         


        
13条回答
  •  醉话见心
    2020-12-06 13:05

    Use the html tag
    to input line endings (your output is interpreted by an html parser), for example:

    Javascript:

    document.write("Hello
    World");

提交回复
热议问题