I stitched it in br, (the following code is deliberately misspelled) but this is the case. Why and how do I break lines?
res.data.data.result.list[index].title + "
"\n"
I stitched it in br, (the following code is deliberately misspelled) but this is the case. Why and how do I break lines?
res.data.data.result.list[index].title + "
"\n"
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
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}`
Previous: About nginx configuration, forwarding function, what's wrong with it?
Next: The same files are placed in different project directories on the same server.