Window. close is used in js to close the window without any other usage. Next I will briefly introduce some tips for window. close () to close the window.
When window. close is used to close the window opened by, a prompt window is displayed, but
This article introduces some common Javascript Form Verification code, including email address, phone number, mobile phone number, ID card, website address, and so on.
The Code is as follows:
Copy code
// Verify EmailFunction
Js scopes are used in a variety of ways and different results are produced in a single detail. Next I will summarize some instructions on js scopes. If you need them, please refer to them.
This is an interview question to introduce the js scope in
This article introduces a good js control page to open the program code in a specific iframe. If you need to know it, please do not go to the reference page.
When writing the system management backend, we often use iframe for management, but there
Next, I will introduce you to a simple implementation method of disabling pop-up by right-clicking the IE browser menu. For more information, see.
Add the oncontextmenu event to the tag. To prevent event propagation and prevent the system from right-
This article introduces how to locate JS screen, browser, webpage height, and width information.
[Ad # content] When operating DOM in JS, the height and width of the browser are often used to adjust the DOM position. Here we will record it.
This article will introduce the HTTP/1.1 open unknown error of Express for your reference. The architecture is as follows: NodeJS + Express, using EJS as the template.The error is as follows:
The Code is as follows:
Copy code
Yesterday, a friend asked me what Javascript var p = function () {} () means? The following is an example of the meaning and use of this function.
The Code is as follows:
Copy code
Var p = function (){}();
What does
In js, we can use regular expressions to check whether the variable is a number. In addition to regular expressions, we can also use the isNaN function to check for non-numeric values. In this way, we can also obtain numbers, the following is an
The operation of cookie cannot be performed on the cookie, that is, the read/write deletion operation. I will give you three examples to introduce the method of using js to operate the cookie. For more information, see.
Instance// Set the cookie
This article introduces a js user who presses the keyboard to display the keyCode instance. For more information, see.
Js instance
The Code is as follows:
Copy code
press the keyboard to display the keyCode the keyCode you
In js, we can use the length function to determine the length of common pure letters and numbers. However, we may not be very accurate about Chinese characters, below I will add some related instances to your favorites.
For example, use the length
Today, I will introduce you to the principle of an array sorting sort method in js. I hope this method will be helpful to you.
Recently, Baidu projects used to sort arrays. Of course, at the beginning, we naturally thought of the array sort method.
Window. location. href is a jump function in js. However, we found in ie6 that window. location. href cannot be redirected. The following describes the causes and solutions.
The problem code is as follows:
The Code is as follows:
Copy
Yesterday I made a simple project and required a select menu with three levels of linkage. However, IE6, which cannot afford to be hurt, encountered a select bug that cannot be hidden, I have also introduced the select layer-high issue in IE6, which
DescriptionEvent indicates the event status, such as the element that triggers the event object, the location and status of the mouse, and the key to be pressed.The event object is valid only when an event occurs.Some Properties of the event only
This input method is briefly introduced. (If it has not been used, we recommend that you use it first, because it is too conceptual, not something I can say clearly.) The biggest advantage is that the storage and computation of word libraries are on
We know that ajax actually uses XMLHttpRequest objects to perform asynchronous data interaction. For security reasons, the browser does not allow cross-origin operations of js code, so js cross-origin operations will be rejected.
Specific situations
Use Jquery to implement editable tables and submit them to the server to modify data using AJAX.
Below is the js Code:
Copy to ClipboardReference: [www.bkjia.com] $ (function () {// equivalent to adding an onload event to the body tag on the page
$ (
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