Nesting and jump control statements and methods of day07 for loop
Nesting of for loops
/* (for loop) "A hundred dollars for a hundred chickens" is a famous mathematical problem in ancient China. The title is described as follows: 3 articles Money can buy a rooster, two Wen can buy a hen, and one Wen can buy three chicks. In 100 words Money to buy 100 chickens, then how many cocks, hens and chick ...
Posted by IlikeTheWeb on Mon, 03 Jan 2022 16:42:35 +0100
Serialize uses the native sql statement Raw Queries - the original query
Since the original / prepared SQL query is often executed in a simple way, you can use serialize Query method
By default, the function will return two parameters - a result array and an object containing metadata (such as the number of rows affected, etc.) Please note that since this is an original query, the metadata is specific dialect Some ...
Posted by KoopaTroopa on Mon, 03 Jan 2022 13:59:08 +0100
Review JavaScript advanced 01 - built in object - prototype object - constructor
catalogue
Built in object
Constructor
Prototype object
summary
Built in object
Built in object api: the object written in advance by the js author. There are some predefined methods. We can use them directly without caring about the principle
api: predefined functions
For example:
Addition, deletion, modification and query of arr ...
Posted by activeserver on Wed, 29 Dec 2021 21:41:41 +0100
Static agent, JDK dynamic agent, CGLIB dynamic agent
catalogue
I What is an agent
II Code implementation agent
I Static proxy
II JDK dynamic agent
III CGLIB dynamic proxy
I What is an agent
Imagine this scenario: we want to invite Jay to perform, but Jay only sings and doesn't want to do other trivial business. What else should we do at this time? At this time, of course, we need to find ...
Posted by julzk on Sun, 26 Dec 2021 02:20:37 +0100
Generic notes
1, What is generics?
Generic: when a class is defined, it does not set the data type for the properties and methods (return values and parameters) in the class. When creating the object of the class, it specifies the corresponding data type.
2, Why use generics?
Example: define a point class, attribute: x coordinate and y coordinate
Require ...
Posted by edsmith on Thu, 23 Dec 2021 03:58:55 +0100
6, Multi module Association query of Efcore in Abp Vnext
abp framework provides a great module development experience. These modules are reusable and also suitable for developing microservices; Since the module can be published independently, its database configuration is also independent. For the module using efcore, each module contains a different Dbcontext;
In Efcore, under the same Dbcontext, m ...
Posted by ondercsn on Thu, 16 Dec 2021 12:26:27 +0100
CGB Fifth Day
while Loop
Syntax Format: Loop Initial Value;
While {loop body; Step statement;}
Execution process: first judge the Boolean expression, when the Boolean expression is true, execute the loop body and step statement, and then judge the Boolean expression again after execut ...
Posted by Benny Johnson on Wed, 08 Dec 2021 10:12:11 +0100
[LINQ] Chapter 1 uses anonymous types
Anonymous types use the keyword var. In short, anonymous type means that you don't have to specify a specific type. Just write VaR, and CSharp will calculate the data type defined by the expression on the right. The CSharp compiler then specifies that the defined variable is of that type. When a type is specified, it is equivalent to a strong t ...
Posted by freshneco on Mon, 22 Nov 2021 08:03:26 +0100