I used NodeJS to make a crawler, crawl data from the web page and return it in the form of json,
After using $http to get it, I now want to escape and ask for standard page display. This is what is written on my page
Then js part
The content after I output scope
is
Originally, the data should be obtained through scope.newsContents.content
, and then displayed through jQuery
in .html()
, but the following result occurred
is directly undefined
, let alone get the content below. I tried to output other things in scope
and it worked
![Picture uploading...]
Please help me solve this problem, I would be very grateful.
Thanks to my friend for his patient answer, I slowly figured it out