English title: Professional JavaScript for Web
Author: [US] Nicholas C. Zakas
Publisher: Turing Programming Series
Publication year: 2012-3-29
ISBN: 9787115275790
1. Event Handling Models: Bubbling and Capturing 1 2 3 <div id="outer"> <p id="inner">Click!</p> </div> In the code above, a div element contains a p child element. If both elements have a click handler, how do we know which one will be triggered first?
To solve this problem, Microsoft and Netscape proposed two almost completely opposite concepts.
Background: I had just finished a Django data-query web project. The data came from internal API queries, and every query had to call several APIs to fetch the data and render it on the front-end page. Since the relevant data does not change often, I designed a cache to improve
Scenario one: the company is preparing to push an email announcement to all employees. Using a wrapped mail library API and looping over every employee to push the emails will leave the main program stuck in the loop and unable to respond, which is not what we want β we want to be able to carry on with other operations normally after clicking execute.
1. Class C Accounts Settlement members of the interbank bond market are divided into Class A members, Class B members, and Class C members. Class A accounts are mainly commercial banks; Class B accounts are rural credit institutions, securities firms, funds, and insurers; Class C accounts are mainly non-financial institutional legal entities, whose trading settlement must be entrusted to a Class A member to handle on their behalf.