After a long time, I finally released something. SmartJS is an open source js library that was just started recently, the purpose is to do something special (smartjs is also dependent on jquery for the time being ). SmartJS has a lot of content
If event processing is involved when javascript is used, you need to know the differences between events in different browsers. There are three main JavaScript event models (refer to SupportingThreeEventModelsatOnce). they are NN4, IE4 +, and
This instance can be run by directly pasting the code. Of course, do not forget to change the image path. This example is written by me once, hoping to help you and learn together. Effect:
The html code is as follows:
The Code is as follows:
This article mainly introduces the attributes and methods of jQuery prototype. For more information, see
The Code is as follows:
JQuery. fn = jQuery. prototype = {Constructor: jQuery,Init: function (selector, context, rootjQuery ){},Selector :""
This article mainly introduces how jQery centers a webpage on a display of any resolution. If you need it, you can check the screen width and set it to the p width of the frame id, adjusted according to the maximum width of your webpage. the maximum
This article mainly introduces the simple image zoom-in effect implemented by jQuery. If you need it, you can refer to the DEMO to click a circular image. The image method places the image of the water and the lower layer, when you move the mouse up,
This article mainly introduces the jquery array filtering method grep (). For more information, see grep () in jquery, this description is not found in the api documentation. View official instructions: http://api.jquery.com/jQuery.grep/
How to Use
This article describes how to use javascript to obtain the height and width of a hidden element (display: none, if you need a friend, you can refer to js to obtain the size of visible elements. This method can be used directly:
The Code is as
This article mainly introduces the effect of new message flickering prompts In the title bar implemented by js, which is frequently used by some large websites, if you need a message, you can refer to the company's project to use the new message
This article describes how to use the hasOwnProperty and isPrototypeOf methods in js. For more information, see
HasOwnProperty:Is used to determine whether an object has an attribute or object with the name given by you. However, you must note that
This article mainly introduces the new features of ECMAScript6, The ArrowFunction. ECMAScript6 is actually JavaScript, and its new features are the new features of JS. The introduction is only a matter of time, you can refer to the arrow function as
This article mainly introduces the Promise mode encapsulation instance of JavaScript asynchronous callback. This article analyzes the source code of easyjs and finds that all instances refer to easyjs. If you need it, you can refer to the webpage
This article mainly introduces the analysis of return and closure functions in javascript. At least it helps you understand the meaning of so many () functions. If you need them, you can refer to the following experts to bypass them! This has
This article describes how jQuery can add or subtract multiple items in a shopping cart and calculate the total price. For more information, see
The Code is as follows:
JQuery allows you to add or subtract multiple items in a shopping cart and
The easiest way to obtain website icons is to use websitefavicon. ico can also be obtained through the services provided by google. The following example shows how to obtain the website icon. The most common and simple method is through
This article mainly introduces various pitfalls and methods for filling holes in JavaScript code writing. I believe you have encountered these traps. This article describes five pitfalls and methods in total, if you need a friend, refer to the word "
In IE6, when the href of link A is javascript, it cannot be redirected to the current page. This example provides an effective solution. You may wish to refer to the section when cutting down the page, sometimes using link A to replace the button,
There are many ways to hide and display the tr tag. This article uses jquery to implement it. If you need it, you can refer to the following nonsense. Directly Writing code is the best way for programmers to communicate. Haha:
The Code is as
When browsing some websites, especially some novel websites, there will be a place to modify the background color of the page. jquery can be used to browse some websites, especially for some novel websites, the background color of the page is
This article mainly introduces three implementation methods for button acceptance of carriage return events. If you need them, refer to method 1 below:
The Code is as follows:
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