Source|Dada Front End Bistro
What is Promise
The Promise object is used to represent the final state (completion or failure) of an asynchronous operation and the value it returns.
What is synchronous, asynchronous
Synchronizing tasks can block program execution, such as alert, for
Asynchronous tasks do not block program ex ...
Posted on Tue, 26 Nov 2019 17:11:26 -0800 by mick_otoole
1. Concepts1. In object-oriented languages, interfaces are used to define the behavior of objects.Interfaces only specify what the object should do, and the way to implement this behavior (implementation details) is determined by the object.2. In the Go language, an interface is a set of method signatures.
Interfaces specify only the methods ...
Posted on Thu, 07 Nov 2019 05:46:46 -0800 by melmoth
To implement a general array class, the requirements are as follows:
Data of built-in data type and custom data type can be stored.
Store the data in the array to the heap
The capacity of arrays that can be passed in the constructor
Provide the corresponding copy constructor and operat ...
Posted on Sat, 02 Nov 2019 00:42:10 -0700 by Azazeal
Question: Whether there exists an undirected graph G with n vertices is the isomorphism of its complement graph H, if there exists an adjacency matrix of output G and the mapping of H with respect to G.
Analytical and constructive questions, the answer is not unique. The original graph has the ...
Posted on Thu, 10 Oct 2019 11:30:23 -0700 by kirtan007
This article is mainly about the use of shell script loop statements.
Designated number of times
[root@localhost ~]# vim num.sh
[root@localhost ~]# chmod +x num.sh
[root@localhost ~]# ./num.sh
for USER in $T ...
Posted on Wed, 09 Oct 2019 16:10:41 -0700 by Okami
First, what is database partitioning
Recently I wrote an article about MySQL table partitioning. Now let's talk about what database partitioning is. Take MySQL as an example. The data in MySQL database is stored on disk in the form of files. By default, it is placed under / mysql/data (which can be viewed by datadir in my.cnf). A table mainly c ...
Posted on Fri, 06 Sep 2019 01:19:40 -0700 by clicket
Basic concepts of set/multiset container
Basic Concepts of set Containers
Set feature: All elements are automatically sorted according to their key values. Set elements do not have both real and key values as map does. S ...
Posted on Mon, 19 Aug 2019 03:32:21 -0700 by freakuency
What is promise?
Promise, which means to promise you a result after a period of time (usually an asynchronous operation), is a solution to asynchronous programming. Grammatically speaking, native Promise is an object from which messages for asynchronous operations can be obtained.
Characteristics of promise
The state of the object is not affect ...
Posted on Thu, 15 Aug 2019 03:14:32 -0700 by koldstar
1. Smli data types
1. Dalvik byte code
In Davlik byte codes, registers are 32-bit and can support any type. 64-bit types (Long/Double) are represented by two consecutive registers.
There are two types of Dalvik byte codes: the original type; the reference type (including objects and arrays)
v. void can only b ...
Posted on Thu, 13 Jun 2019 09:24:24 -0700 by kodstationen
1. Attribute operations
1.1 Basic Attribute Operations
$("img").attr("src") returns the SRC attribute values of all images in the document
$("img").attr("src","test.jpg") sets the SRC attribute values for all images in the document
$("img").removeAttr("src") deletes the SRC ...
Posted on Mon, 03 Jun 2019 19:15:53 -0700 by vtb