CodingCommon character encoding: Iso-8859-1 (not supported in Chinese), gb2312, GBK, GB18030 (system default code, China GB Code), Utf-8 (universal code, support worldwide coding, so we use this)
1. Response code* When using Response.getwriter () to
In the browser, set the zoom for a div, using this method:
function div_zoom (zoom, Transformorigin, el) {
transformorigin = Transformorigin | | [0, 0];
El=el | | G_plumbinstance.getcontainer ();
var p = ["-webkit-", "-moz-", "-ms-", "-o-"];
var
1. Object.assign ()
First look at the definition of the function:
The function argument is a target object (the object is the final return value), and the source object (here can be any number). By calling this function, you can copy all of its own
JS and OR operator | | && magical, can be used to simplify the code, reduce the readability of the program.
First of all, a question:As shown in figure:Suppose the growth rate is shown as follows:Growth rate of 5 shows 1 arrows;Growth rate of 10
Static code, non-static code, constructors, and so on in a class are not the same in the order in which they are initialized.
1. Initialization of static code
Static code includes static field and static block
Example 1: The following code:
Class
Original link: Oleg Shelajev translation: Importnew.com-shenggordonTranslation Links: http://www.importnew.com/14506.html
4 styles of Java Concurrent Programming: Threads,executors,forkjoin and actors
This article discusses a variety of methods
There was a recent heap memory overflow for a Java service, then zombie, and a dump file was generated with the Jmap command before restarting the service for later analysis.
command to generate dump file:
Jmap-dump:format=b,file=20170307.dump 16048
Mockito is a very powerful test framework that is widely used in the unit test of Java programs, and in which the highest frequency is feared to count "Mockito.when (...). Thenreturn (...) " Up. That's a very handy "mockito.when" (...). Thenreturn (.
Configuration
Using CXF makes it easy to publish ordinary Java classes as webservice.
First in the official website download Apache-cxf-3.1.1.zip, decompression after the Lib folder to copy all the jar files to the project Webroot/web-inf/lib
I found on the Internet better to enlarge the local picture effect of the JS code
First, the picture to enlarge the preview effect (the clearer the picture, enlarge it will be clearer):
Second, the picture local amplification effect:
Third, the
This article to undertake a previous: MyBatis based on the Maven get started instance
Preparation section1. Enter http://mvnrepository.com/, search Hibernate ORM, find the corresponding version, you can see the configuration
2. Copy this section
Import com.google.gson.*;
Import Com.google.gson.reflect.TypeToken;
Import Java.lang.reflect.Type;
Import Java.util.HashMap;
Import Java.util.Map;
Import Java.util.Set;
/** * Created by Zzm on 2017/8/25 10:46. */public class Test {public static
1. The homologous strategy is as follows:
URL
Description
whether to allow communication
Http://www.a.com/a.jsHttp://www.a.com/b.js
Under the same domain name
Allow
Attention to the problem: in learning to use Selvert filter to handle Chinese garbled, in the filter configuration initialization with the Utf-8 processing Chinese garbled, and in the submission of the JSP page is used GBK. Although both can come
Two floating-point numbers cannot be accurately compared with "= =" floating-point numbers can only be close to not equal
if (0.1+0.2==0.3) {System.out.println (TRUE);}
Rounding is never done when floating-point numbers are generated the overflow
Edit a JS file, want to this JS file appears other JS members of the IDE prompts, you can then JS file at the beginning of the use of 3 slash notes and reference instructions to the path to this JS file paths, so in writing this JS file, The IDE
TypeYes/no
Classes
Regular Inner Classes
Method-local Classes
Fields
Methods
Constructors
Yes
public final Abstract
public protected Private final static
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service