Why doesn't javascript newlines work inside html?

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

So I have the following:


  
    
  
<         


        
相关标签:
13条回答
  • 2020-12-06 13:05

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

    Javascript:

    document.write("Hello<br/>World");
    
    0 讨论(0)
提交回复
热议问题