directory structure:
main.js:
comment.js
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
you can put the content content you get directly into html (). The; html () method can contain html tags. Syntax: $(selector) .html (content)
recently, an interface for reading data has been found to take too long to return in the production environment. Project uses nodejs + mongodb Development dependency: questions such as title: what is the difference between: timed out and so...
id! this is my current practice. The problem is that the last res.send () only deals with the first traversal. If you put res.send () outside the traversal, the value of goodsList does not change. Is there a big answer? ...
mongodb, is used in node and listens to the service on the local port, which has been accessible normally until now, but has suddenly been inaccessible. Can t find out what the problem is connect mongoose mongoose.connect( mongodb: localhost cour...
Last year, the title owner used node- express-mongodb to develop a simple internal website of the company. Yesterday, he upgraded the npm package, which led to mongodb.open reporting an error directly here, returning a 500error, and without any error pro...
server.js const express = require( express ); const expressValidator = require( express-validator ); const mongoose = require( mongoose ); const bodyParser = require( body-parser ); const app = express(); const port = 5846; ** * * cons...