How to use events and what are the main differences between the IE and DOM event models, a friend you need to refer to(1) Bubbling event: The event is triggered in the order from the most specific event target to the least specific event target
This article mainly introduces how to use js cross-browser Event Listeners and event objects, for more information about how to add Event Listeners and cross-browser event objects, see this document.
Package One
EventUtil object
Var EventUtil = {//
This is what I saw in the Help document yesterday, it is very good, this is the IDE itself, so, interested, can be found in the Help, convenient and authoritative, written also very easy to understand. Posted up, let's see, this help document is all
An event system is a very important part of a framework that responds to the various behaviors of the user.The browser provides 3 levels of API to respond to the user's various behaviors .1. The most primitive is written in the element tag.2. Again
Android Touch event transfer mechanism: androidtouch
Respect Original: http://blog.csdn.net/yuanzeyao/article/details/38025165
Resource download: http://download.csdn.net/detail/yuanzeyao2008/7660997
In the previous article, I mainly explained the
JS event Learning notesEvent stream
If an element has an ancestor Element and Its ancestor element defines the same event as it, when an event occurs on the element, it involves the sequence of events transmitted between the element and the ancestor
In mobile development, it is easier to start prototyping on the desktop first and then handle the mobile-specific parts on the device that you intend to support. Multi-Touch is one of those features that is hard to test on a PC because most PCs have
This article describes a little jquery trick that allows any component object to support event management like DOM, that is, in addition to distributing events, adding or removing event listeners, supporting event bubbling, blocking event default
Event
Event is a complex and simple problem, because there are always many concepts easily interwoven, before understanding the event, we first need to understand the concept of event.
Event often has two characters, one is event, one is event
IOS-touch event-event transfer process and response chain, ios-chain
1. There are three common events in ios:
Touch event
Accelerator event
Remote Control event
2. Why does it mean that events can be handled with the inheritance of
(1) Bubbling event: The event is triggered in the order from the most specific event target to the least specific event target (Document object).IE 5.5:div, Body, documentHTML--Document, body, IE 6.0:divMozilla 1.0:div, body, HTML, document, window(2
In all kernel objects, the event kernel object is the most basic object. Event to notify that an operation has been completed.Client and a server that need to communicate with each other example (VS2008)The composition of the event kernel objectA
Due to the differences in original event objects in various browsers, most JS library frameworks fix and package native event objects more or less. For example, use cancelBubble to stop event bubbling IE, and use stopPropagation in standard browsers.
This article mainly introduces the jQuery technique to enable any component to support DOM-like event management. If you need it, refer to this article to introduce a jquery tips, allows any component object to support event management similar to
Document directory
Assume that you write
Compatibility in traditional mode
It always happens
Use
Turn it off
Currenttarget
Microsoft Models
In the first chapter, I mentioned a problem that may not seem so understandable for the first time:
It is also a heavy function point.
Analyze the architecture before analyzing the source code to help understand the source code. In fact, before the advent of jquery, Dean Edwards's Cross-browser Addevent () design was already excellent, and the
Event distribution mechanism
New event distribution mechanism:During event processing in version 2.x, events to be triggered are handed over to the proxy (delegate) for processing, events are received by ontouchbegan in the proxy, and finally the
This section gives a deep dive into the topic about event processing. If you are not familiar with patterns, closures, and object-oriented concepts, I believe you will have a lot to learn about it.
1. event processing mode
InProgramIn the
Javascript event details
Description of JavaScript event listEvent browser support explanationThis event is triggered when an onclick ie3 or N2 mouse is clicked.This event is triggered when you double-click an ondblclick ie4 or N4 mouse.Onmousedown
Type of event:
Bind (can bind multiple events):Specifies one or more event handlers that are added to the selected element, and the function that runs when the event occurs.Grammar$ (selector). Bind (event,data,function)
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.