This is a keyword in the JavaScript language.It represents an internal object that is automatically generated when the function is run, and can only be used inside the function. Like whatfunction test () { this.x = 1;}The value of this will
ConceptThe event delegate, in layman terms, is to delegate the event of an element to its parent or to a more external element processing.Event Flow
The event flow describes the order in which events are received from the page.
Event
For students who have just started to learn JS, it is highly recommended to use Chrome developer mode directly, which is super convenient.Open a Web page, start the developer mode to write JS code, do not create new HTML and JS files can see their
JS Case-sensitive Label selectors are case-insensitive in HTML/CSS ID class selector is case sensitivewhere property Name Property Name property value is not case sensitive the case-insensitive content part of the inline event onclick, etc.More
JavaScript Test () methodJavaScript REGEXP ObjectsDefinition and usageThe test () method is used to detect whether a string matches a pattern.GrammarRegexpobject.test (String)
Parameters
Description
String
1.1 typeof operatorThere are 5 simple data types (also known as basic data types) in ECMAScript: Undefined, Null, Boolean, number, and String.1 complex data types--object,object are essentially composed of a set of unordered name-value pairs.TypeOf:
Example of the mouse dragging effect of a applet, and example of a Applet
This article describes how to drag a small program with the mouse. We will share this with you for your reference. The details are as follows:
1. Effect display
2. Key
Understanding and practice of javascript Function, javascriptfunction
Function functions are the foundation of javascript and an exciting point for implementing functions. We use instance analysis to give you a deeper understanding of Function
H5 calls the mobile phone camera, album function, h5 camera
Accept indicates the opened system file directory;
Capture indicates the default device captured by the system. camera: camera; camcorder: camera; microphone: recording;
Web Front-end learning-CSS and web Front-end css
I. Introduction to CSSThe full name of CSS is cascading style sheeding, which is a list of stacked styles. CSS not only allows static modification of webpages, but also supports dynamic formatting of
Vue-based mobile image cropping component and vue image cropping component
A License Plate Recognition function has been developed in the recent project. I thought it was very simple. I only needed to throw the image to the background, but after
About how angularJs clears browser cache, angularjs Browser
Cache
A cache is a component that transparently stores data so that it can serve requests more quickly. Repeated resource acquisition may result in data duplication and time consumption.
Solve the problem that two or more menus share one component during vue + webpack development. vuewebpack
In the actual development of vue, you may encounter a public component problem. For example, there are two buttons in a menu, and each button
Bootstrap response tool usage details
The examples in this article share the code of the bootstrap responsive tool for your reference. The details are as follows:
responsive tools only those with lg resolution or above are displayed,
ReactNative-specific use of FlatList, reactnative
The previously used component is ListView. At that time, a pull-down refresh and pull-up function should be added. Therefore, ListView is encapsulated. However, we will refer to the official
Some angularJS usage and angularJS usage
AngularJS
Event command:
ng-click/dblclickng-mousedown/upng-mouseenter/leaveng-mousemove/over/outng-keydown/up/pressng-focus/blurng-submit
Like ng-click, events are bound to the dom.
Note that when using
It perfectly solves the problem of webpage source or refresh in the drop-down menu at the top of the mobile browser.
Shows the problem:
Generally, there is an attribute "event. preventDefault () ", but if you use it directly, it will cause internal
How to Write vue plug-ins and vue plug-ins for instances
Before learning, ask yourself why you need to compile the vue plug-in.
Many parts of a project, especially a large project, need to be reused, such as loading animations and pop-up boxes. If
Javascript browser title modification method JS dynamic browser title modification, titlejs
Title is a special node element in html. because it can use document. getElementsByTagName ("title") [0] to obtain the title tag of a webpage, but document
Vux code and vuevux code
Introduction
Vux is a mobile UI component library developed based on WeUI and Vue (2.x). It mainly serves the page.
Based on webpack + vue-loader + vux, you can quickly develop mobile pages. With vux-loader, you can
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