Home  >  Q&A  >  body text

javascript - I want to make a function similar to likes and comment reminders in the circle of friends in a small program. It is a bit stuck now. I am an intern in my senior year. Please give me a thumbs up.

1. When the page is onshow, I should get the likes and comments that others have posted about me that I have not viewed.
2. After clicking the reminder, go to browse and change the whether it has been viewed or not. Already browsed
Question: How to request the API to get data when currently stuck onshow. How to get likes and comments that have not been viewed yet?

巴扎黑巴扎黑2733 days ago481

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-18 11:02:02

    Do you mean how to request the API to get the data? You can use wx.request to initiate an HTTPS request, request the server's interface, and get the data you mentioned about unviewed and liked comments.
    About WeChat Mini Program wx. I wrote this article as a request, you can refer to it http://www.cnblogs.com/huange...

    reply
    0
  • Cancelreply