Script Description:
The first step: Add the following code to the area
var key = "";
function Makeentry () {
This. Name= "";
This. URL = "";
This. Desc = "";
This. Category = "";
This. Target = "";
return this;
}
function Makearray (n)
Previously thought that Window.opener only in the Window.Open method opened the window can be accessed, did not expect even a link opened the same page can be accessed. Window.opener points to the parent window, which is the source window. can use
Instance
The code is as follows
Copy Code
"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > Please adjust the browser window Adjust browser window size The actual height of the browser window: The actual
The SetInterval () method can call a function or a calculation expression in the specified period (in milliseconds).
The Clearinterval () method can cancel the periodic method call.
When the setinterval call completes, it returns a timer ID that
In the JS to convert the character to the number of parseint () parsefloat () () Three functions, let us explain their syntax and use methods.
About the number function
The number object is the wrapper object for the original numeric value.
To
Definitions and usage
Stringobject.replace (regexp/substr,replacement)
The replace () method replaces some characters in a string with some other characters, or replaces a substring that matches a regular expression.
Look at an example
String Object Properties:1. LengthTo get the length of the string, it should be noted that the Chinese characters in JS also represent only one character.var myname= "Xulinjun"; Console.log (myname.length); 8String Object method:1, CharAt
Boolean operators && and | | The return result is not necessarily a Boolean value! Therefore, some research and understanding will be carried out.1. First introduce the following common data types converted to bool value.(Common place) in an if
The statement is the JavaScript whole sentence and the command.An expression statement:count++; alert (123); A = 100; .......Compound statement and empty statement:A compound statement is a compound statement that connects multiple statements
Read the originalIn the IT world, a lot of JavaScript developers are needed. If you are capable of this role, you will have many opportunities to change jobs and raise salaries. But before you get accepted into the company, you need to demonstrate
Query fragment:View Plaincopy to clipboardprint?
(function () {
This ignores all implementations of jquery
})();
When I first contacted jquery six months ago, I was as excited as anyone to see what the source code was Like.
Here are some simple examples to summarize some of the uses of This:1. The This in the method points to the object that is currently executing the method, such as:var name = "window"var tom = { name: "tom"; Show:function () {alert (this//Tom 2
CSS flex-shrink attribute of Flexble elastic box model, flexshrinkcss3Instance
Shrink the second element to 1/3 of other elements:
Effect Preview
div:nth-of-type(2){flex-shrink:3;}
Browser support
The number in the table indicates the version
Tip: you can modify some code before running JavaScript form makes the button Gray codeForm to make the button Gray code与之间-->与之间--> Tip: you can modify some code before running
Recently, as a company's business system, the company requires that it be as close as possible to c/s, that is, like c/s. Click the text box to bring up the relevant content of this project, select Input.I used the pop-up window. In the subwindow,
For more information, see the code.Verification result:PortalUse a JavaScript regular expression to verify non-positive integers:Http://www.111cn.net/wy/js-ajax/125202.htmValidate a non-zero positive integer:
Even though there are still two months before the Chinese New Year's Eve, the battle for ticket snatching has started. The tragedy is that I have not yet obtained the ticket. When I saw a number on a browser, I thought of a classic interview
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