Basic syntax:window.open (Pageurl,name,parameters)whichPageurl as a child window pathName is a child window handleParameters for window parameters (comma-separated arguments)Look at an example belowwindow.open () Support environment: Web effects 1.0+
String.substring (from, to)String.slice (start, end)
The two methods are similar to specifying that the start and end positions return the new string, returning the result when the argument is a positive integer, and when the argument is a negative
Parameters: arr--Array typeReturn value: An array with no duplicate elements
1. Generates an object first with the value of the target array. This step is the most core: because in an object, the key is not repeated, so it is very clever to exclude
JS part should pay attention to write the compatibility of events, and in fact JQ is a lot of functions as a plug-in form for their own use, with the Web page special effects write, you can write their own class library for repeated use, and do not
JavaScript is a scripting languageJavaScript is a lightweight programming language.JavaScript is a programmatic code that can be inserted into an HTML page.When JavaScript is inserted into an HTML page, it can be performed by all modern
The origin of the topic of this chapter, but also from the work of some students to speak. Writing this article is mainly to let everyone from different angles to analyze the problem, the process of learning to see more, more practice, think more,
1. About thisWe need to determine the binding rules used in this function based on the "calling method" of the function on the "Call location"2. Binding rules(1) Default binding: This==>winow Object(2) Implicit bindingThe context object referenced
Custom SMS template, requirements: You can insert keywords, of course, you can click anywhere in the Text field, the keyword in the form of brackets wrapped in a "keyword", delete the keyword to remove the entire key, instead of deleting all of
Usually write code, change an element style, you useObj.style.width = "200px"; obj.style.position = "absolute"; obj.style.left = "100px";Code, so that if you change the style a lot of time, you have to write a lot of code, not like jquery, the use
var arr=[]; for (var i=0;i; i++) { arr[i]=return0.5 - math.random ()}) var str=arr.join (); alert (str);Code explanation:Sort is sorted on an arrayIt works like this, and each time you select two numbers from the array to perform the
What does href = # In the link mean,
Link to the current page.-------------------It is usually used as follows:: close Linking href = "#" means connecting to the current page is meaningless, and the page will not be refreshed. The key is the onclick
CSS align-items attribute of Flexible elastic box model, cssalignitemsInstance
Align the elements of the elastic box in the center:
Div
{
Display: flex;
Align-items: center;
}
Browser support for copying preview results
The number in the
HTML navigation, html navigation
Today, I will share with you how to create a simple navigation bar:
Step 1: Introduce the css style sheet, create a new layer with the id of nav, and use the , , and labels to create the effect.
homepage
Style reset, Style
Well, the browser usually sets the default style. For us, this is very inconvenient, so we have to reset the style.
Next, I recommend two small items for style resetting.
Resert
I will attach the latest version here. If necessary,
Border and cssborder for css stylesBorder Usage Details: 1. Set the border width in the border-width attribute.
Possible value: pixel2. Set the border style in the border-style attribute.
Possible values: solid (straight line), dashed (dotted line),
Tip: you can modify some code before running Javascript switch tab effect codeTab 1Tab 2Tab 3 Button 1 Button 2 Button 3Note: replace tab-view.png with your background image. Tip: you can modify some code before running
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