Use Generator functions to implement asynchronous task queues
{code... }
Front-end modularization
Modular Module in the Node. Js. Exportsexportsrequire () {code... } {code... } {code... } ES6 moduleExportExport DefaultTimportImport ()import is static (compile time) and require() is dynamic (run time). The import() function loads dynamically. Unlike require(), which loads asynchronously, the import() function loads synchronously. .
Webpack environment optimization
HMR(Hot Module Replacement)-- One of the most useful features webPack provides, it allows various modules to be updated at run time without a full refresh.
ES6 Interview Summary
Reference [link]MapMap is a set of key-value pairs with extremely fast lookup speed. For example, if you want to find a grade by the name of a classmate, you need two Arrays:
ES Promise object, write Promise. Smack the interviewer
A Promise is simply a container that holds the result of an event (usually an asynchronous operation) that will end in the future. Syntactically, a Promise is an object from which you can retrieve messages for asynchronous operations. Promise provides a unified API so that all asynchronous operations can be handled in the same way.
The React Large Project State Management Library
In order to be a comfortable wheel to use, I recently studied the React state management library, but only at the usage level, which is to choose which state management library to use from a comfortable perspective. The selection was based on a GitHub look at the popularity and usage of the state management library within the React community. Let me know which one we chose at the end of the post.
【 Vue 】 The mobile end is also easy to use image cropping tool Vue-Cropper - H5
The documentation and how to use it are very detailed: [link] I used it with some optimizations for its style and usage: {code... } The effect is as follows:
React source Part6 -- How to implement status updates
In the React app, we need to update the React app after a status update is triggered. In the React app, we need to update the React app after a status update is triggered. What is the concurrency model, and what are its advantages over the current model? How is asynchronous interrupt update implemented in React? How to turn on React Concurrent Mode (Concurrent Render...
Fixed selectionRows clearing after ANTD Table component paging
Using Vuex to store data {code... } override table onChange event {code... } pay attention to cleaning Vuex {code... }
Log file sync
When a user session (the foreground process) commits (or rolls back), the session's redo information needs to be brushed into the redo log file. The user session will use LGWR to write all the required redo requests in the log buffer to the redo log file. When LGWR is complete, it notifies the user of the process. The user session will have this wait event while waiting for LGWR to post it back to confirm that all redo changes are safely on disk.