Most Java developers are using maps, especially HashMap. HashMap is a simple but powerful way to store and retrieve data. But how many developers know how to work inside HashMap? A few days ago, I read a lot of Java.util.HashMap's source code
In the graphical interface, text boxes and text areas are components used for information input and output.text Box
A text box (JTextField) is a box in the interface that you use to enter and output one line of text. The JTextField class is used to
The Graphics class provides basic drawing methods, and GRAPHICS2D classes provide more powerful drawing capabilities. This section explains the graphics class, the next section explains Graphics2D.
The Graphics class provides basic geometry
TreeSet supports two sorts of sorting methods: natural sorting and custom sorting. TreeSet default to natural sorting.
1, Natural sorting
TreeSet invokes the CompareTo (Object obj) method of the collection element to compare the size relationships
5 Promise.all ()
The Promise.all method is used to wrap multiple Promise instances into a new Promise instance.var p = promise.all ([p1, p2, p3]);In the code above, the Promise.all method accepts an array as an argument, p1, p2, and P3 are instances
(1) For general built-in types, there is basically no difference between the two types of initialization.
int a (5);//Direct initialization
int a=5;//Copy Initialization
int A=int (5);//Direct initialization
(2) When used for class-type objects, the
1, the discovery of IE under the input label ID attribute the default and name properties are the same, and Firefox must explicitly write out the name of the id attribute, or you can not use the id attribute.
such as:
In IE under the following code
1.document.formname.item ("itemname") problem
Note: Under IE, you can use Document.formName.item ("ItemName") or document.formName.elements ["elementname"]; Firefox, you can only use the document.formname.elements["ElementName"].
Workaround: Unify
css| Web page
Introduction to Z-index Properties
Reference:
Z-index:auto | Number
Auto: Default value.Number: An integer value of no units, which can be negative.
Elements with a larger z-index value are superimposed over elements with a z-index
Article Introduction: JavaScript compatibility has long been a major problem for Web developers. The differences between formal norms, factual standards and various implementations make many developers suffer day and night. To this end, mainly from
Data | database
Summary:
This paper discusses the method and function realization of using ASP to access DBF, DBC, MDB, Excel, SQL Server data, and finally gives an example of accessing Excel database by using the function provided in this paper,
Create | object | advanced
Using constructors to create objects
A constructor is a function called to instantiate and initialize a particular type of object . You can invoke a constructor by using the new keyword. A new example of using a
server|sqlserver| stored procedures in our user authentication program, it is easy to use ASP to call the SQL statements to retrieve the data table is a qualified record, and then use ASP for related processing.
All Roads Pass Rome! Of course, we
8 JavaScript to create objects (Class) method, Yiyi introduced to everyone, I hope you like.
1. Use the object constructor to create an object
The following code creates a person object and prints the property value of name in two ways.
In the actual application development, we will often use JS mode events, but sometimes encounter some problems, such as click events, for example, click the form outside the "submit" button to submit the form. Code on it.
Html:
Copy Code
In the process of developing a multilingual Java Web site, it is found that many of the code in FF can run normally, but not in IE, and vice versa. The incompatible and unified methods of IE and Firefox (Firefox) in JavaScript are summarized as
1. There is no outerHTML method in Outerhtml,ff compatible with Firefox.
Copy Code code as follows:
if (window. HtmlElement) {
htmlelement.prototype.__definesetter__ ("outerHTML", function (SHTML) {
var r=this.ownerdocument.createrange
Onabort is triggered when a user interrupts downloading an image.
OnActivate is triggered when an object is set to an active element.
The document associated with the Onafterprint object is immediately triggered on the object after printing or
Cheung-Fine content:
Brief introduction
Tip 1: Caching common data on a WEB server
Tip 2: Cache commonly used data in application or session objects
Tip 3: Caching Data and HTML on a WEB server disk
Tip 4: Avoid caching inflexible components in
There has been no time to see prototype, now well, has been updated to the 1.5 Pre1, oh, powerful features have to learn ah, this is to improve their JS ability of another shortcut.
1. What is prototype?
Maybe you haven't used it yet, Prototype.js
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.