PHP Study Notes (4) and php Study Notes
Some functions in the Wordpress framework:
Wp_get_nav_menu ($ default ):Obtain menus Based on the condition $ default. All menus are obtained by default.
$ Default is shown as follows by default:
$default = array( ‘theme_location’ =>'', 'menu' =>'', 'container' =>'div', 'container_class' => 'menu-{menu_slug}-container', 'container_id' =>'', 'menu_class'=>'menu',
DOM study notes 5: dom Study NotesDOM table creation:Create a table with five rows and five columns on the page1. Event source, button
2. There must be a storage location for the generated table Node
Second:Create a table with the specified number of rows and columns, and delete the specified rows and columns.
Display the row color interval and highlight it:Mouse touch, highlighted
Table sorting:
HTML Study Notes (5): html Study Notes
1. Javascript is a scripting language that provides user interaction, dynamic content modification, and data verification.
2. We use the script tag to embed javascript statements into html documents.
3. The script tag pair can be placed in either the head tag or the body tag.
4. If you want to use javascript to pop up a window on the webpage and write your own defined
My java Study Notes (13) Reflection (part 2), study notes
Whining... This evening is a bit of a thing... As a result, there was no eclipse in the lab, and the command line was used. As a result, the environment variables were not properly configured for a long time .. Now .. Ah ..
1. The key method for viewing object fields is the get method in the Field class.
Field f = c1.getDeclareFields ("name"); Obje
JAVA Study Notes (fifty-nine)-Socket programming, Study Notes socketClient
Import java. io. IOException; import java.net. datagramPacket; import java.net. datagramSocket; import java.net. inetAddress; import java.net. unknownHostException;/** Client */public class Client {public static void main (String [] args) throws IOException {/** send data to the server * // 1. define the server address, port, and dat
HTML Study Notes (2): html Study Notes
1. The Form tag indicates the Form, which is used to submit data to the web server. The Action attribute is used to specify a URL to determine where the form data is submitted to the network for processing. The method attribute can only take two values, get or post, the get method is faster than the post method.
2. the Input tag is a form element. Its type attribut
DOM Study Notes 3. dom Study Notes
Get nodes through node hierarchy: (important)When a node has no id or name, the link in the node is another way to get the node.Get nodes through node relationshipLink:1. parent node: parentNode, a parent node2. subnode: childNodes, which is a set of directly descendant nodes3. sibling nodes: relatively less useful, because there is no browser resolution method, the order
Study Notes for Linux _ Day2 and Study Notes _ day2
The next day, continue to learn Linux commands...
I. Command for viewing the file and directory list
Ls: displays files and directories in the current directory, but does not show hidden files and directories.
Ls-a: displays all files and directories in the current directory.
Ls-l: displays detailed information about the files and directories in the c
BootStrap3 Study Notes (1) -- mesh system, bootstrap3 Study Notes
Code and table from: http://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-grid-system.php
If a grid is displayed, the Code should look like this:
Col-* indicates the column width occupied by the grid system for different types of devices.
Extremely smallMobile phone (
SmallFlat Panel (≥768px)
MediumCompu
Swift Study Notes (2): handle errors and swift Study Notes
Directory:
Do-catch
Assertions
Do-catch
In Swift, throws can be used to throw exceptions during program execution, and do... catch can be used externally to catch exceptions thrown by methods limited by try.
Func makeASandwich () throws {// This function may throw an error} do {try makeASandwich () eatASandwich ()} catch SandwichError. o
Mysql Study Notes 2 (Table constraints) and mysql Study NotesOperation table Constraints
Integrity is the accuracy and consistency of the index data, and integrity check is to check the data accuracy and consistency. The mysql database management system provides a mechanism to check whether the data in the database meets the specified conditions. To ensure data accuracy and consistency in the database, t
Mysql study Note 3 (INDEX), mysql study note IndexIndex
Database Object Index: A combination of data. By indexing objects, you can quickly query specific records in the database object table. It is the most common way to improve performance.
An index contains one or more columns in the table in a certain order.
Index operation:
Create, modify, and delete indexes.
The database object index
MySQL study note _ 2_MySQL create a data table (on) and study note _ 2_mysqlCreate a data table (on) in MySQL)
I. Create an SQL statement model for a data table [weak type]
CREATETABLE [if not exists] Table Name (
Type of field name 1 column [attribute] [Index],
Type of field name 2 column [attribute] [Index],
...
Type of field name n column [attribute] [Index],
) [Table attributes] [Table character set];
MySQL Study Notes _ 10_MySQL Advanced Operations (below) and study notes _ 10_mysql MySQL Advanced Operations (below)
V. MySQL pre-processing statements
1. Set the pre-processing stmt and pass a data as the where judgment condition.
Prepare stmt from "select * from table_name where id> ?";
2. Set a variable
Set @ I = 1;
3. Execute the pre-processing statement
Execute stmt using @ I;
4. Delete preproces
MySQL Study Notes _ 9_MySQL Advanced Operations (on) and study notes _ 9_mysql MySQL Advanced Operations (I)
I. MySQL table replication
Create table t2 like t1; # copy the table structure. t2 can learn all the table structures of t1.
Insert into t2 select * from t1; # copy table data, but this still has a defect, because the corresponding column is not taken into account, because t1 and t2 table structure
MySQL Study Notes _ 7_MySQL common built-in functions and Study Notes _ 7_mysql MySQL common built-in functions
Note:
1) it can be used in SELECT/UPDATE/DELETE and where, orderby, and having.
2) use the field name as a parameter in the function. The value of the variable is the value of each row corresponding to the field.
3) In programming languages such as functions provided in C ++, most MySQL function
Python Study Notes (6) and python Study Notes
I. Classes and Instances
The first object-oriented program:
class Student(object): def __init__(self, name, score): self.name = name self.score = score def print_score(self): print '%s: %s' % (self.name, self.score)bart = Student('Bart Simpson', 59)lisa = Student('Lisa Simpson', 87)bart.print_score()lisa.print_score()The class name is
Mysql Study Notes-mysql database installation and mysql Study Notes
1. Run the mysql installation package and select Custom installation (the installation path should not contain Chinese characters; otherwise, an error will occur during installation !)
2. For a mysql instance to be successfully operated, three parts are required: server side, data segment, and data.
3. Server Software Directory:
4
C ++ Study Notes (10): iterator and Study Notes Generator
We all know that we can use subscript operations to access string objects and vector objects. There is also a more general method that can be implemented. The name is iterator ).
Similar to pointers, The iterator also provides indirect access to objects. As far as the iterator is concerned, its object is a character in the element or string in the co
Python Study Notes (7) and python Study Notes
1. dynamically add attributes and methods to a class:
1. dynamically add attributes and methods to an instance:
The method bound to an instance does not work for another instance.
Class Student (object): passs = Student () s. name = 'Michael '# dynamically bind an attribute print s to the instance. namedef set_age (self, age): # define a function as the instance
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.