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["
Oracle Normal view and solid view comparisonSource: Rank Blog | 2013-07-30 Oracle Normal and solid views compared to normal views, the entity view differs in that the manifested view manages the stored data, occupying the physical space of the database. The results of the manifested view are saved in a normal data table, and when queries are made to the entity view, the base table of the entity view is not queried, but the result table of the entity view is queried directly, and then the data
I've been thinking that the entity of the string class is a constant, and why is it possible to modify it?
For example, code:
public class Test {public
static void Main (string[] args) {
String str= "AAA";
str+= "BBB";
System.out.println (str);
}
Here the str entity is "AAA", has not changed, but it is "+ +" operation modified into "AAABBB", this is not a change.
In fact, here is a misunderstanding, is str+ "
HASHMAP is not thread safe
The following figure shows the realization of HashMap's Get method, which is judged by the hashcode and Equals method.
It is possible to implement the equality criteria for custom object by overriding the Hashcode and equals methods of the class, with the complete code as follows
Book.java
Package com.shc.map;
public class Book {
private String title;
Public book (String title) {
super ();
this.title = title;
}
Public String GetTitle () {return
title;
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.