search

Home  >  Q&A  >  body text

javascript - Why do most people like to use Dep to represent message subscribers?

As the title says, looking at many examples, Dep is always used when talking about message subscribers.

I don’t understand the connection between them at all, please let me know if you want to know more.

巴扎黑巴扎黑2707 days ago969

reply all(1)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-07-05 10:50:14

    Dep is the abbreviation of dependence, which means "dependence" in Chinese. Because Watcher subscribers need to rely on Dep to understand changes in data. Without Dep, Watcher cannot know that data has changed. When data changes occur, Dep will notify Watcher. Dep is equivalent to a magazine. As a subscriber, Watcher first You need to subscribe to the magazine, so that when a new magazine (news) is generated, Dep will notify Watcher, so Watcher is strongly dependent on Dep, and there is such a relationship between them.

    reply
    0
  • Cancelreply