The previously written articles setTimeout and setInterval have some shortcomings. Today I took some time to sort them out, if you really want to understand it, you have to start with the javascript single-threaded mechanism. About half a year ago,
The returned values of from form submission can be implemented using the post or get method of jquery. For details, see, I hope you can use the post or get method of jquery to achieve some help ($. post (url, params, callback) $. get (url, params,
I searched for the Performance Optimization content on the Internet, and now it is easy to organize for you to use during the optimization process, if you are interested, you can find information on the Internet to learn about performance
In js, the window. location. hrefwindow. location. href jump does not respond. ahyperlink onclick. Click to jump to a solution without a response problem. The error code is mainly in href = "#" here.
The Code is as follows:
Incorrect syntax,
Recently, jQuery was used to write the options of the drop-down box to move left and right. It cannot be used in jsp, after testing, we finally found a solution. Here we will share with you the code to move the option values left and right in the
This article describes how to use jsreplace and replaceall instances. For more information, see stringObj. replace (rgExp, replaceText)
Parameters
StringObj
Required. String object or String text to be replaced. The string is not modified by the
In js, single quotes and double quotation marks are the same. We try to use single quotes whenever we use them. Only when we encounter nesting will we use two quotation marks at the same time, interested friends can understand the executable Syntax:
This article describes in detail the simple implementation and encapsulation of the dialog box using jquery. The specific implementation code is as follows. If you are interested, refer to the following code and hope to help you.
The Code is as
All web developers should master the front-end optimization technique, one of which is rolling delayed loading. This technique has been applied in many places, such as Sina Weibo. The following is a detailed introduction. For more information about
There are three types of algorithms mentioned in this article for table creation, namely, direct dom operations, createDocumentFragment, and Native table operation methods of js. Let's take a look at these three algorithms and their performance in
For example, to create a most common input initial value, I used to write it in the input value. I want to write the initial value separately, so I am dumb and use & lt; span & gt; tag write, located on the input, so that the click and input get
Today, the history query function encountered the problem of calling methods in the front and back of each other. I studied and recorded the successful experiences one or two. 1. Use document. form. action
The source code is as follows:
*.
In each programming language, character seek connections are involved, and this small character seek connection problem may affect the overall performance of the system, this article mainly discusses the performance of string connection in
This article introduces the usage of filter () and find () and the difference analysis between children () and find. If you need a friend, refer to jquery's find () method and filter () method, which are easy to confuse for beginners. Here we use a
Use the code of extend (inherited by js) in Extjs to copy & lt; a simple description of Extjs & gt; Note: Copy
Books
The traditional js implementation inheritance operation is:
1. Define a parent class
The Code is as follows:
Var
Like Baidu and google, when we enter something into the search box, a list of top or suitable candidate words is displayed, which is called suggest. This article will teach you how to design it step by step. First, the Framework used is of course my
The JavaScript circle has an illusory effect, which is a bit similar to the Feather Effect in PS. For more information, see.
The Code is as follows:
Use JavaScript to defend against the Feather Effect code in PS-www.jb51.net
In fact, there are many descriptions about querySelector and querySelectorAll. This is mainly to make a record. At the beginning, many people will use the jquery selector to compare with the two APIs (I am also). It is okay to compare the
Js object-oriented design: {} is good or function () {} is good. You have replied and I feel good. I would like to share it with you. I have read many JavaScript projects on the Internet, and the objects used are in the form:
For example, jQuery and
You must be familiar with the client (browser) compatibility problem in JS framework development. Normally, we use if to deal with interface inconsistencies and piles of bugs. However, the methods described here can make compatibility more elegant.
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.