character *? Regular expressions can be executed with some commands, such as the introduction of Grep,vi,sed,awk in Linux shell (ii) 03. Interaction with Shell scripts #cd/tmp/ddd/#ls ... #rm-rf * #vi a#!/bin/ Bashecho $ \$1echo $ \$2echo $ \$3echo $# \$\ #echo $? \$\?echo $$ \$\ $wq #chmod a+x a#./a$1$2$30 $# (input number of parameters) 0 $?3061 $$#./a aaa bbb cccaaa $1bbb $2CCC $34 $ #0 $?3064 $$ #vi b#!/b In/bashecho Stop $ $2ing ... #./b httpd s
HTML Table Code General people will write, nothing but the use of th, TR, TD, the Novice webmaster network to say the table code upgrade, table code across rows across columns, a row of multiple columns or a column of the use of multiple rows:Cross-row, row-by-column, or one-column-by-row code that is used primarily for multiple rows is and is used across multiple colspan rowspan columns when used colspan across multiple rows rowspan . For example, a row across 2 columns, you can write colspan="
to Print_r and var_dump, but rarely used.Var_dump:This function displays information about the structure of one or more expressions, including the type and value of the expression. The array recursively expands the value and displays its structure by indenting it.The difference between Var_dump and Print_r:Var_dump returns the type and value of an expression and print_r only returns results, which is easier to read than debugging code using Var_dump.
Print_r (), Var_export (), Var_dump () The d
Tags: Error table ESC contains NTA Getting started date har knowledgeMySQL 5.7.8 begins to support JSON types.CREATE TABLE T (ID int,js json,primary KEY (' id '))Inserting dataINSERT into t values (1, ' {"A": 1, "s": "abc"} ')INSERT into t values (2, ' [1,2,{' a ': 123}] ')INSERT into t values (3, ' "str")INSERT into t values (4, ' 123 ')Provide a string directly. You can also use the Json_array and Json_object functions to constructINSERT into T values (5,json_object (' Key1 ', v1, ' Key2 ', v2
(function () { function Extend (func,proto) { func.prototype.__proto__=proto.prototype; Object.defineproperty (Func.prototype, "Proto", { value:proto.prototype }); } function Super (func,method) { if (!method) method= ' constructor '; return Func.prototype.__proto__[method]; } Window. Extend=extend; Window. Super=super;}) ();When dealing with super super, I encountered a dead loop:This.super-->this.proto.constructor () {this.super}-
, in this case, can we prevent others from using the reserved IP address of the DHCP server at will? In fact, we can easily bind the reserved IP address of the DHCP server to the physical address of the NIC of a specific computer, this prevents others from using the IP address reserved by the DHCP server at will:
First, log on to the system where the DHCP server is located as a super administrator, and execute the "Start"/"run" command on the system desktop to open the "run" text box of the serv
Provides two modes of light and deep copy.=>copy (x): Returns a shallow copy of X=>deepcopy (x): Returns the deep copy of XShallow copy and deep copy:Shallow copy copy invariant objects, referencing mutable objects (such as lists and dictionaries);Deep copy replicates mutable and immutable objects.Several methods of shallow copying:(1), copy with slice [:] Operation(2), using factory functions (such as list/dir/set) for copying(3), copy.copy ()Example:#深拷贝浅拷贝Import Copyperson = [1,2,4,[' A ', '
Each () method makes the DOM loop structure concise and error-prone. The each () function encapsulates a very powerful traversal function and is handy for traversing one-dimensional arrays, multidimensional arrays, DOM, JSON, and so on.The use of $each during JavaScript development can greatly reduce our workload.Here are some common uses of eachEach handles a one-dimensional array var arr1 = ["AAA", "BBB", "CCC" ]; function (i,val) {
();$. Bar1 ();$. Plugin. foo2 ();});
/*2. Object-level plug-in developmentObject-level plug-in development requires the following two forms:*/// Form 1(Function ($ ){$. FN. Extend ({Foo3: function (){Alert ('object-level plug-in extend method 1 ');},Bar3: function (){Alert ('object-level plug-in extend method 2 ');}})}) (Jquery );
// Form 2(Function ($ ){$. FN. foo4 = function (){Alert ('object-level Plug-In FN mode ');}}) (Jquery );
// Receive parameters to control the actions of the plug
For example, sell 10 News, 10 News did the sort: 1, 2, 3, 4, 5, 5, 5, 6, 6, 7;
Displays a random display when the same sort number is encountered. That is, the same sort number local random display.
This thing does not know how to write, can it be realized?
Reply to discussion (solution)
$arr = Array (Array (' id ' = = 1, ' name ' = ' aaa ', ' uid ' =>1),Array (' id ' = = 2, ' name ' = ' bbb ', ' uid ' =>2),Array (' id ' = = 3, ' name ' = ' CCC
Each () method makes the DOM loop structure concise and error-prone. The each () function encapsulates a very powerful traversal function and is handy for traversing one-dimensional arrays, multidimensional arrays, DOM, JSON, and so on.The use of $each during JavaScript development can greatly reduce our workload.Here are some common uses of eachEach handles a one-dimensional arrayvar arr1 = ["AAA", "BBB", "CCC" ]; function (i,val) { a
varaaa = {
2
i: 10,
3
valueOf:function() {returnthis.i+30; },
4
toString:function() {returnthis.valueOf()+10; }
5
}
6
7
alert(aaa > 20);// true
8
alert(+aaa);// 40
9
alert(aaa);// 50
This is because they secretly call the valueof or tostring method. But how can we tell which method is called? We can test it using another method. Because consol
method.
About = and equals, let's talk about string construction.
We usually use two types of string construction.
String a1 = "BBB ";
String a2 = new string ("CCC ");
The two methods are different.
First, we can see from the figure above that the BBB data is stored in the constant pool; specifically, the string a1 = "BBB" is used to generate a string, the JVM
1. Naming rules1.1 package naming rules
[Java-1]The package name should be written in small form and separated by "." In the middle [required]
Description · reason
Unless otherwise specified, make sure that the package name is written in small form. This is a general Java rule.
Example
Package CN. co. AAA. BBB; // ErrorPackage CN. co. AAA. BBB; // correct
[Java-2]The package name must be me
', 'Hello ') // set data for cells in the table-> setCellValue ('b2', 'World! ') // The data format can be string-> setCellValue ('c1', 12) // number type-> setCellValue ('d2 ', 12) //-> setCellValue ('d3 ', true) // Boolean-> setCellValue ('d4', '= SUM (C1: D2 )'); // formula // obtain the table of the current activity. Note that $ objActSheet = $ objPHPExcel-> getActiveSheet () is often used in the following tutorial (); // position bbb * provide an
the system does not re-allocate inode for it.You can use the ln command to create a hard link. Reference ln [Options] existingfile newfile
Ln [Options] existingfile-List Directory
Usage:First, create a hard link for "existingfile". The file name is "newfile ".In the "directory" directory, create a hard link with the same name for all files contained in "existingfile-list.Commonly used [Options]:-F creates a link regardless of whether "newfile" exists or not. -N if "newfile" already exists, no l
sessionstorage is the key value pair in Sessionstorage is emptied when the session ends.Api/** JS Storage * http://www.cnblogs.com/st-leslie/p/5617130.html * http://www.cnblogs.com/yuzhongwusan/archive/2011 /12/19/2293347.html*/functionTestlocalstorage () {Debugger; Localstorage.setitem ("AAA", "AAA"); Localstorage.setitem ("BBB", "BBB"); varres = Localstorage.getitem ("AAA"); Res= localstorage["
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.