Es6 reverse apostrophe string translation

clipboard.png
enter a newline character in the reverse apostrophe, which is output as is. How to make the newline character work

Feb.27,2021

do you want to output n as is or do you need a newline character? you should output a newline character


which has nothing to do with the reverse apostrophe. Where are you going to export
to the page if it is the attribute title , or textarea or the console can use n line feeds
you can use the br tag in html .

  • Press < kbd > f12 < / kbd >
  • $('body'). Append (`asdasdads\ n asdasddsd`)

although there is no newline on the page, you can see that the element outputs a newline

clipboard.png

Menu