Tag:Asynchronous programming
-
Time:2020-1-13
Forgive me for being a title party. Ajax will not die. Traditional Ajax refers to XMLHttpRequest (XHR),FutureIt has now been replaced by fetch. Recently, the data products of Alibaba’s 10 million level PV are all produced by jQuery$.ajaxMigrate toFetch, it has been running very stable since it was launched for more than one month. The […]
-
Time:2019-12-23
Let me see~ Before promise: Because the JS engine allocates only one thread to execute JS code, JavaScript is single threaded. Because of this pre setting, one of the things that front-end Er can’t get around when writing code is how to deal with asynchrony, that is, how to deal with the “now and later” […]
-
Time:2019-12-18
Synchronous asynchronous series article recommendationOn JavaScript asynchronyCallback in JavaScript asynchronyJavaScript asynchronous promise. All(), promise. Race(), promise. Finally()JavaScript asynchronous promise. Resolve(), promise. Reject()Promise then and catch of JavaScript asynchronyAsynchronous JavaScript async (1)Asynchronous JavaScript (2)JavaScript asynchronous practiceJavaScript asynchronous Summary Archive We said that the most common way to deal with JavaScript asynchrony is through callback function, which […]
-
Time:2019-12-17
Synchronous asynchronous series article recommendationOn JavaScript asynchronyCallback in JavaScript asynchronyJavaScript asynchrony and promiseJavaScript asynchronous promise. Resolve(), promise. Reject()Promise then and catch of JavaScript asynchronyAsynchronous JavaScript async (1)Asynchronous JavaScript (2)JavaScript asynchronous practiceJavaScript asynchronous Summary Archive Today we’re going to talk about promiseThere are many articles about the use of promise API on the Internet. In order […]
-
Time:2019-12-14
Synchronous and asynchronous Students who understand JavaScript must be familiar with the concepts of synchronization and asynchrony. If there are still unfamiliar students, I’ll give you an example. For example, we have to do three things after getting up in the morning: boiling water, washing face and eating breakfast. Synchronization is equivalent to boiling water […]
-
Time:2019-12-7
Let me see~ There may be some inaccuracies in the explanation. Please correct Promise has been active in the JavaScript community in long time ago and is popular with developers. It was only in recent years that promise was included in the ECMA specification. Why do we use promsie? Because: We don’t want the code […]
-
Time:2019-12-4
Promise is a high-frequency question in the front-end interview. When I was an interviewer, the probability of asking promise was more than 90%. As far as I know, most companies would ask some questions about promise. If you can write the source code that conforms to the specifications of promise a +, I think you […]
-
Time:2019-12-3
This implementation comes from section 16 JavaScript execution in winter’s “relearn the front end” (1): why does the code in promise execute before setTimeout?In the last question, use to achieve a traffic light effect. <body> <style> .redgreenlight{ width: 100px; height: 100px; margin: 0 auto; border-radius: 50%; line-height: 100px; text-align: center; background-color: #eee; border: double 3px […]
-
Time:2019-11-28
I. Preface What is promise? What is the core of promsie? How does promise solve the problem of callback to hell? Other questions 1. What is promise? Promise is the final result of asynchronous operation; it can be used to solve the problem of callback hell and concurrent IO operation A promise represents the eventual […]
-
Time:2019-11-15
When learning DART’s asynchronous programming, we need to sort out the related knowledge systems involved in asynchronous programming. We can ask the following questions to understand the content involved in asynchronous programming one by one: Why asynchronous programming? What is the internal mechanism of asynchronous programming? How to program asynchronously in dart? [TOC] isolate: Dart […]
-
Time:2019-11-15
Asynchronous programming As we all know, JavaScript isSingle threadWork, that is, only one script can execute the next script after it is executed. Two scripts cannot execute at the same time. If a script takes a long time, the latter scripts must be queued and waiting, which will delay the execution of the whole program. […]
-
Time:2019-11-12
Tornado is an asynchronous Python framework open-source by Facebook, and node.js is an open-source project funded by joyent, which is dedicated to providing a JavaScript framework for writing high-performance concurrent web applications. This blog will briefly talk about the similarities and differences between the two asynchronous frameworks under Linux. If there is any error or […]