1,: eq () and nth-child ()See the following code:2,: odd and: even: Odd number of rows: Even number of rowsNew users often say that it seems to be the opposite of what we do?In fact, like the eq () selector, the subscript starts from 0,That is, the
Put runcode. js in the website directory when using it, and put the following code where you need to run the codeCopy codeThe Code is as follows: {1} tip: you can modify some code before running You can.Runcode. js FileCopy codeThe Code is
title Project 1 subclass 1 subclass 2 Project 1 project In the code above, when you click a project or subclass, the parameters are the same because the trigger event is the same, which can distinguish whether the user clicks "Project
This time I encountered another such problem. After searching for a long time, I finally found a good one on the Internet. After reading the code, the idea was very simple, but there were too many codes and the versatility was not good, I have
Recently, you need to export data to word and edit and print the data.I have thought of several solutions:1. Use jacob.2. Use apache poi.3. Use itext.Because of the tight schedule, I have to study the above toolkit in a few cases. Now I use
But it is an XML string, it will be different in the two browsers. in IE, you can directly use the LoadXML method to parse the XML string, and in FF, you need to use the parseFromString () of the DOMParser object () the method isVar oParser = new
// Obtain the character arrayString. prototype. ToCharArray = function (){Return this. split ("");}// Obtain N identical stringsString. prototype. Repeat = function (num){Var tmpArr = [];For (var I = 0; I Return tmpArr. join ("");}// Reverse
The following describes how to use a string in Javascr into pt:1. Change the string case sensitivity.String. toUpperCase ();String. toLowerCase ();2. string SEARCHThe indexOf () method is used to determine whether a short string is in another long
Good JS verification ~~~~~~~~~~~~~~~~~~~~~~~~~Purpose: Verify the IP address format.Input: strIP: IP AddressReturn: If the verification succeeds, true is returned; otherwise, false is returned;*/Function isIP (strIP ){If (isNull (strIP) return false;
Writing event processing functions in FireFox is troublesome.Because FireFox does not have window. event. To get the event object, you must declare the first parameter of the time processing function as event.To be compatible with IE and FireFox,
Copy codeThe Code is as follows:You can configure the time interval for switching each image, and set the path of each image (either absolute or relative)Although very simple, it is very practical.
X: set or obtain the position of the outer boundary of the parent element of the mouse relative to the target event on the x coordinate.ClientX: The x coordinate position of the client region, excluding the scroll bar, that is, the body area.Offsetx:
Untitled Document open open [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]Find document. body. onclick = function (evt ),In IE, this evt does not exist, but in fireFox (it seems like it
Since I have seen a lot of people in the past, this kind of imitation XP is not very realistic, and I have come up with an idea in the past few days.... Hey, it's funny.Can you see it ~~ It should be okay ~~ HOHO ..The general idea is that, no
I thought it would be easy to solve the problem in CSS like input. I didn't expect to try it to know that the conventional CSS simply couldn't change the select style. How can I do it in CSS, select is still the default 3D style. So I searched the
TextRange is an object used to express text in HTML elements. Although we do not usually use this object, it is provided in IE4.0. However, the call methods provided by TextRange are obscure, so what can we do with it?The traditional use of
Let's look at a simple document tree.Obviously, the top-level node of the tree is a NodeA node. Next, you can move the node to any point in the tree by specifying the appropriate node. In combination with the following code, you can better
1. slice Method (Array)Returns an array.ArrayObj. slice (start, [end])ParametersArrayObjRequired. An Array object.StartRequired. The starting element of the part specified in arrayObj is the subscript calculated from scratch.EndOptional. The ending
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