Chapter 1 helper method, Chapter 4 helper
I. Custom helper Method
1. inline helper Method
Use the @ helper tag, which has the name, parameter, and no return value. The result is directly put in the response of the client. InRuntime evaluation type.
@helper ListArrayItems(string[] items){
2. External helper method (Extension Method)
public static MvcHtmlString ListArrayItems(this HtmlHelper html ,
Getting started with HTML and CSS-Chapter 4 understanding Cascading Style Sheets and Chapter 4 css
Knowledge point:
1. How to create a basic style table
2. Use style class methods
3. Use style ID
4. build internal style sheets and embedded styles
4.1 CSS Working principle:
CSS: the abbreviation of a stacked style sheet. It is a language that defines style structures such as fonts, colors, and locations. It
Chapter 4 cycle structure, Chapter 4 Cycle Structure
1. Features of the loop structure:
1) not endless
2) It will continue only when certain conditions are met. It is called a "cyclic condition"
3) Exit the loop structure when the condition is not met
4) The loop structure is a series of identical or similar operations that are called "loop operations".
2. The loop structure in java must meet the following
Chapter 9 anonymous functions of Javascript and chapter 9 javascript
Analysis:
1. The so-called anonymous function, literally, is a function without a name. js is replaced by () (Note: it is a bracket in English)
2. Definition form:
function (){ //to add codes that you want to add}
3. Functions of anonymous Functions
(1) Compared with the closure function, GC automatically recycles memory once the global
Chapter 6-dictionary and chapter 6 Dictionary
1 # ***** create multiple dictionaries and store them in a list to print all dictionaries. *** #2 pet1 = {3 'type': 'dog ', 'ower ': 'Peter '} 4 pet2 = {5 'type': 'cat', 'ower': 'lili'} 6 pet3 = {7 'type': 'rabbit ', 'ower': 'heli'} # create a dictionary using curly brackets 8 pets = [pet1, pet2, pet3] # When multiple dictionaries are saved in a list, the bracke
Chapter 2: Summary data, Chapter 2 Summary DataTable Name: productsField: product_id, product_name, product_price, vend_id (supplier) 12.1 clustering function:
We often need to summarize data instead of retrieving data. MySQL provides specialized functions.
Search example:
Determine the number of rows in the table
Obtain the sum of the row groups in the table
Locate table columns
MySQL provides five Ag
Chapter 5: sorting and retrieval data; Chapter 5 sorting and Retrieval
Table Name: products
Field: product_id, product_name, product_price, vend_id (supplier)
According to the database design theory, if the sorting order is not clearly specified, the order of retrieved data should not be assumed to be meaningful.
(If the data has not been updated or deleted, the order of Data addition is displayed by defaul
Chapter 1 AOP and chapter 1 aop
We usually use the AspectJ annotation for AOP. There are 6 middle-Cut sections in total.
Front: @ Before
Post: @ After
Returned value: @ AfterReturing
Exception: @ AfterThrowing
Surround: @ Around: can be understood as a set of the above four types
Reference (not commonly used)
Two difficult parts:
Connection points: JoinPoint and ProceedJoinPoint
The connecti
Chapter 2 scrapy-redis distributed crawler, Chapter 2 scrapy-redis9-1 Key Points of distributed crawling
1. Advantages of distributed architecture
Make full use of the bandwidth of multiple machines to accelerate crawling
Make full use of the IP addresses of multiple hosts to accelerate crawling
Q: Why does scrapy not support distributed deployment?
A: In scrapy, scheduler runs in the queue, while the
Chapter 1 Basic JSP syntax and chapter 1 jsp syntaxJsp page element structure
The jsp page consists of commands, comments, static content, expressions, small scripts, and declarations.Jsp commands
Page command: Usually located at the top of the jsp page. The same page can have multiple page commands.
Include command: embed an external file into the current jsp file and parse the jsp statement on this page
T
Chapter 3 Stream API, Chapter 3 streamapi
Example:
1 List
Note:
Line 1: Create an array and convert it to List
Row 2: Create a stream based on the List
Row 3: deduplication of the stream --> select --> sort --> stream to List
Row 4: traverse the List
The above code shows the convenience of stream API. Of course, the above Code can be simpler, as shown in the following code:
Arrays.asList("zhaojigang"
Chapter 3 induction of knowledge points and Chapter 3 knowledge points
1. Object Initiator
Initialize the object directly when calling the constructor.
public class Student{ public string Name; public int Age; public bool Gender;}Student stu=new Student{Name="zhangsan",Age=10,Gender=false};
Equivalent:
Student stu=new Student();stu.Name="zhangsan";stu.Age=10;stu.Gender=false;
2. this and base
This
3295 questions about algorithms in chapter 9 and chapter 9Time Limit: 1 s space limit: 1000 KB title level: GoldQuestionView running resultsDescriptionDescription
There are n numbers (n is an odd number), n-1 numbers are paired in pairs, and one number is placed on a single order to find this number. Requires the time complexity of O (n) and the space complexity of O (1 ).Input description
Input Description
;
Use pseudo-code to help design the test code;
The test code should be written before implementing the method;
To create a Java class:
Find out what the class should do
Listing instance variables and methods
Pseudo code for writing methods
Test procedures for writing methods
Implementation class
Test method
debugging or re-engineering
Not a reliable invitation to the girls to celebrate the party, such as home?? Seven days ho
Chapter 2 Precise Calculation of Java floating point numbers and Chapter 2 java floating point numbers
1. Practical Significance
In actual development, if precise float or double computing (especially financial computing) is required ), directly Using float or double is not acceptable (for specific examples, refer to the test results of the main method of the code below). BigDecimal is required.
2. CodePac
Chapter 1 List of errors encountered during development, Chapter 1 Development
List of errors encountered during development: (the list will be updated continuously)
1. http
404: The resource cannot be found. A strange problem in springmvc is listed.
Symptom:
When we execute a method in controller, assume that the path on the class is "/mq" and the path on the method is "/addLog", then the access pa
Chapter 2 of python Learning (conditions, loops, and other statements) and Chapter 2 of python1. Simple conditional execution statement (if)
Num = int (input ("enter a number \ n "))
If num = 0:
Print ("num = 0 \ n ")
Else:
Print ("num! = 0 \ n ")
A slightly more complex execution statement:
Num = int (input ("enter a number \ n "))
If num = 0:
Print ("num = 0 \ n ")
Elif num> 0:
Print ("num> 0 \ n ")
Else:
Java concurrent programming art note Chapter 3 (1), java chapter 3
1. Java threads communicate with programmersTransparent, But itsMemory visibility problemsYesCauseOther weird issues;
2. Two key issues need to be considered in parallel programming: 1. HowCommunication2. How are threads?Synchronization
3. In imperative programming, there are two types of communication between threads:1. Shared Memory 2. Mes
Chapter 7 Summary of common Java Collection classes and Chapter 7 java
7.1. List (repeated elements are allowed)
ArrayList:
Underlying data structure: Object []
InGet, iterator, and set)ArrayList
Scalable, unlimited capacity
Shortlist
Underlying data structure: Annular two-way linked list
InAdd and remove)In the case of many operations, use the upload list
Linked List, unlimite
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.