How to use Ajax to get the data in the back-end interface in the front-end, and then I will handle it myself.

directory structure:

clipboard.png

main.js:


comment.js


clipboard.png

failed to get the data routed from the backend. I just want to extract the content data from the data in the backend and process it myself, otherwise the data will have no spaces and line breaks

Mar.04,2021

you can put the content content you get directly into html (). The; html () method can contain html tags. Syntax: $(selector) .html (content)

Menu