jquery is so powerful that I decided to imitate jquery to build a wheel and learn how jquery is using various techniques to achieve those very powerful functions, while making wheels. Since I was imitating jQuery, I decided to name the new framework
Exception capture1. AbnormalWhen the JavaScript engine executes the JavaScript code, an error occurs, causing the program to stop running2. Exception throwsWhen an exception is generated and the exception is generated with an error message3.
Push (): Deletes the first element of the array, returning the deleted value. This is 0 .Pop (): Deletes the last element of the array, returning the deleted valueShift (): Deletes the first element of the array, returning the deleted valueUnshift (
JavaScript custom events , which are essentially observer patterns (also known as subscription/release patterns), have the advantage of isolating bound events and triggering events from one another and dynamically adding and deleting events.The
JavaScript Events Detailed notes:I. Flow of events1. Event Flow:Describes the order in which events are accepted in the page, event bubbling, event capture, two.2. Event bubbling:The nodes (documents) that are received by the most specific element
Details on js class inheritance and original type inheritance, and details on js prototype inheritance
This article provides examples of js class inheritance and original class inheritance code for your reference. The details are as follows:
1. js
The javascript advanced selector querySelector and querySelectorAll are fully parsed. The selector
The querySelector and querySelectorAll methods are defined in the W3C Selectors API specification. Their role is to easily locate specified elements
JQuery implements click water ripple fluctuation animation and jquery ripple
JQuery click the water pattern fluctuation animation principle:
1. Add 2. The Code locates the cursor relative to the label and draws a circle around the center of the
Introduction to implementation of blinds by native js, and implementation of blinds by js
We have seen blinds! :
Principle:
The hollow lattice is like setting relative positioning attribute for each li, setting overflow: hidden, black block as li
More efficient use of JQuery here summarizes eight tips, more efficient jquery
1. DOM traversal is expensive and variables are cached.
Copy codeThe Code is as follows:// Not recommendedVar h = $ ('# ele'). height ();Detail ('{ele'}.css ('height', h-2
CSS values and units of Web Front-End notes, and css of web Front-end newcomersNumber
Color-named color
In Css2.1, 17 color names are defined. Including 16 colors and an orange color defined in
Front-end practical Demo: a single picture takes a one-page layout, practical demo
For front-end programmers, it is necessary to cut a graph based on their needs after taking the design drawings and materials from the designer's hands. However,
Without using border-radius, You can implement a reusable rounded rectangle with adaptive height and width, and a border-radius rounded corner.
Currently, css3 supports rounded rectangle, but it is difficult to solve compatibility issues, but it is
Explain Promise in the big vernacular of JavaScript Item34 that you don't know
ES2015 was officially released in February last June (ES6, ES6 is its milk name), where Promise is listed as a formal specification. As one of the most important features
Research on Block Layout and LayoutProblems with nested elements such as p and div in div
Http://caiceclb.iteye.com/blog/428085
Some Problems in this article may not be suitable for today.
If you are learning the front-end, you cannot ignore small
Css positioning, css relative positioning
I. Overview
1. default file stream Location Method
(1) by default, HTML documents are located in stream mode, that is, content elements are located up and down in order;
(2 ). HTML Tag elements are divided
Green simple school login html page, login html page
Effect preview: http://hovertree.com/texiao/css/22/The Code is as follows:
green and simple School Management System login Page html template _ what to ask Why do you want to ask about
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