I have been paying attention to Jquery before. lazyLoad. js is a special effect, but it has never been used. I have studied it over the past few days and applied it in practice. It does not help SEO, but it can save some traffic, this is especially
Some common character processing functions in JavaScript are often used by friends who learn JavaScript.
1. decodeURI () parameter: string
Function Description: decode the URI encoded by the encodeURI () function.
Instance:
Decodes a http://www.jb5
Determine whether the user is online Code. For more information, see. Consider two situations:
(1) The user closes the browser or redirects to another webpage
The Code is as follows:
ASP. Net's GridView does not contain a scroll bar, which can be implemented through Panel. However, the Windows built-in horizontal scroll bar can only be displayed at the bottom. For ease of use, the horizontal scroll bar must be displayed at the
Inheritance is an essential feature of object-oriented systems, but javascript does not have an inherited conceptual mechanism, but we can implement this function on our own.
The Code is as follows:
Var JsObject ={}| | new Object ();JsObject.
To improve efficiency, you often need to verify the files uploaded by the client on the web page and upload them to the server. The following is a general commit Crip script I wrote. Although many parameters need to be assigned during the call, they
Javascript can obtain the current date and time and other operation functions. For details about how to operate the date and time in javascript, see. Complete sorting. MyDate. getYear (); // obtain the current year (2 digits)
MyDate. getFullYear ();
A JavaScript Object is a set of attributes (methods). In this language, if the variable name or method name does not comply with the Declaration specification, you must reference it with square brackets "[]".
The Code is as follows:
/**
Console. log does not support ie. the following code needs to be tested in Firefox, otherwise there will be problems.
Test.htm
The Code is as follows:
Array-remove-repeate
Script
If (! Console)
{
Var console = {};
Console. log =
JQuery learning notes: jQuery's DOM operation implementation method. For more information about jquery and dom operations, see.
I. node operations
1. Find nodes:
Var $ var_1 = $ ("htmltype"); // obtain all htmltype nodes.
For example, var $ ul_1 = $
The implementation code of basic special effects exercises based on Jquery fade-in and fade-out. For more information about jquery, see. Today, I practiced the following code for the Jquery fade-in and fade-out feature:
The Code is as follows:
The usage and Application Scenario Analysis of callee and caller in javascript. For more information, see. Caller:
FunctionName. caller returns the caller.
Let's take a look at the following functions. You can copy them to VS and execute them.
Recently, I have been thinking about JQ in the project, so some of my experiences have been put up in a timely manner. I would like to ask you if I have any questions. In the project, the left menu is folded and displayed, which is common in the
Today, kiddie provides another method to use Flash for cross-origin operations. Flash cross-origin operations are restricted. However, the cross-origin configuration of Flash is relatively simple. You only need to place crossdomain. xml under the
Learning the basic concepts of object-oriented: objects and other basic elements
What is an object?
An object is a thing, an entity, and a noun. In a word, everything is an object.
An object stores some information and knows how to perform some
For more information about how to read the content on the xss file page, see. Js:
The Code is as follows:
Document. body. addBehavior ("# default # Download ");Var mycars = new Array ();Mycars [0] = "l.htm ";Mycars [1] = "y.htm ";For (x in mycars)
I have been studying js recently and have many questions. It is confused by the prototype. The question comes from:
The Code is as follows:
Function foo {This. name = 'foo ';}Alert (foo. prototype = Function. prototype); // false. At that time, I
I recently learned JQuery and found many examples of JQuery Accessing. netWebService. WebService interfaces should be generic. Why is there no Java example? This has aroused my interest. I took a closer look at several examples and found the problem.
As we all know, jQuery is very powerful and has many very handsome plug-ins. Next we will introduce the jQuery timer plug-in jQueryTimers. That JS has its own timer. Why should we use Jquery? For convenience, Jquery has encapsulated the setTimeout
Recently, I made another Weibo post in China. From the perspective of user experience, I changed many frequently-used prompts such as window. alert or window. confirm to a pop-up layer. Jquery. the boxy plug-in is already very powerful. Common
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