Before you learn JavaScript design patterns, you need to understand some of the relevant knowledge, object-oriented basics, this and other important concepts, as well as mastering some functional programming skills.JS polymorphicPolymorphic thinking:
Overview
The input:file itself is not very good-looking, but it is impossible to set the style.
Due to system limitations, it cannot be triggered by code and only allows users to click independently.
The usual solution is to make
Yesterday, I saw a post from someone else, and talked about the problem of the array de-weight which often appeared in the interview question. As a love of learning, like to listen to the teacher's words of good children's paper, the ear suddenly
[Type System in 1]javascript : Native Object + Host object + Browser extension object[Note]javascript does not support any mechanism for creating custom types[1.1] Native objects (15 kinds): Undefined, Null, Boolean, number, String, Object, Function,
String definitions:1,var mystring= "content"; or var mystring= ' content '2,var mystring= New String ("content") creates an object---, but adds overheadContent:1, adding single quotation marks (double quotes) in double quotation marks (single quotes)
three basic concepts: constructors, prototypes, instancesEach constructor has a prototype object (prototype), and the prototype object contains a pointer to the constructor (constructor), and the instance contains an internal pointer to the
In addition to creating objects, the constructor (constructor) also does another useful thing--automatically sets the prototype object (prototype objects) for the new object that was created. The prototype object is stored in the Constructorfunction.
Definition and usageCompares two strings in a local-specific order.GrammarStringobject.localecompare (target)
Parameters
Description
Target
The string to compare with Stringobject in a local-specific order.
3.6-3.8These three chapters mainly introduce JS wrapper object, immutable primitive value and variable object reference, JS type conversion.The wrapper object mainly refers to when the original value needs to call some methods (the original value
Some time ago, the project has a requirement, is to add a validation before a function, hesitate there are many places need to add the same function, and after this function to execute the previous method, so it is intended to use hooks this thing
This article is all about the closure of Daniel's view, here is just a summary.There are two scenarios for closure applications--functions as return values, and functions as parameters.1 in-depth understanding of JavaScript prototypes and closuresIt
Used JavaScript students are sure to prototype thunderclap piercing, but this is what is a beginner consensus, only know that the function will have a prototype attribute, you can add a function for instance access, others are not clear, recently
Summary of js pitfalls written test questions (continuously updated)
Ask your interviewer down. You are a qualified interviewer. The following are some mistakes-prone js test questions which will be continuously updated.
1. Evaluate the knowledge
JavaScript design pattern-interface implementation
1. Interface(1) What is an interface?An interface provides a means to describe the methods that an object should have. Although it can indicate the semantics of these methods, it does not specify
How can IE6/7/8 be compatible with CSS3 attributes? ie6css3
Recently I have always asked IE8 to be compatible with the CSS3 attribute at work, And I searched the internet to search for an htc file (ie-css3.htc or PIE. htc. I personally think the two
Multiple Functions in JavaScript: javascriptfunction
Functions in JavaScript have multiple meanings.It may be a constructor (Constructor) to act as an object template;It may be an object method.(Method), responsible for sending messages to
Common IE6 compatibility and css compatibility, and ie6 compatibility with css
Although IE6 has basically disappeared abroad as the XP system exits, it still occupies a large market share in China. E-government websites and web games websites still
Css multi-bar Adaptive Layout and css Adaptive Layout
In page refactoring, we often need to implement multi-column layout, such as a combination of fixed width of n columns and adaptive width of m columns, absolute layout + padding + percentage
Common WEB front-end testing tools and common WEB testing tools
I. QUnit front-end testing tool
QUnitIs a powerful JavaScript unit testing framework developed by members of the jQuery team and is the official test suite of jQuery. Qunit is a unit
Js scope Chain & memory reclaim & Variable & Closure
Closure mainly involves several other features of js: Scope chain, garbage (memory) collection mechanism, function nesting, etc.
I. Scope chain: an index created when a function is defined and
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