javascript - Why do most people like to use Dep to represent message subscribers?
巴扎黑
巴扎黑 2017-07-05 10:48:14
0
1
941

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.

巴扎黑
巴扎黑

reply all(1)
女神的闺蜜爱上我

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!