How to wrap string concatenation? Why didn't br succeed?

I stitched it in br, (the following code is deliberately misspelled) but this is the case. Why and how do I break lines?
clipboard.png

res.data.data.result.list[index].title + "" +res.data.data.result.list[index].author

"\n"
clipboard.png

Aug.05,2021

you have obviously transcoded the data, or you have used innerText instead of innerHTML


1.<br>
2.innerHTML:
:
$("p").html(" <br> "); innerHTML = " <br> ";

if it is vue, you can use {} or write vMuhtml in the tag, if it is jQuery, use innerHTML


br to wrap the line in html.
wrap the string with

 tag, while < br/ > replace n 
and refer to this:
https://codeshelper.com/q/10.


clipboard.png

you are a fake front end, br is wrong, and you also wrote two. One is fine. Write
like this, or you can use the es6 syntax:

.
`${res.data.data.result.list[index].title}<br>${res.data.data.result.list[index].author}`
Menu