<body><divclass="father"><divclass="son">
点我
div>div><script>const father = document.querySelector('.father')const son = document.querySelector('.son')
document.addEventListener('click',function(){alert('I am grandfather')},true)
father.addEventListener('click',function(){alert('I am father')},true)
son.addEventListener('click',function(){alert('I am son')},true)script>body>
当鼠标点击"点我"时候,弹出框弹出的先后顺序是:
I am grandfather
I am father
I am son
冒泡
<body><divclass="father"><divclass="son">
点我
div>div><script>const father = document.querySelector('.father')const son = document.querySelector('.son')
document.addEventListener('click',function(){alert('I am grandfather')},false)
father.addEventListener('click',function(){alert('I am father')},false)
son.addEventListener('click',function(){alert('I am son')},false)script>body>
当鼠标点击"点我"时候,弹出框弹出的先后顺序是:
I am son
I am father
I am grandfather
<body><divclass="father"><divclass="son">
点我
div>div><script>const father = document.querySelector('.father')const son = document.querySelector('.son')
document.addEventListener('click',function(){alert('I am grandfather')},false)
father.addEventListener('click',function(){alert('I am father')},false)
son.addEventListener('click',function(event){alert('I am son')// 阻止事件冒泡
event.stopPropagation()},false)script>body>
A ROWID is an identification tag unique for each row of an Oracle Database table. The ROWID can be thought of as a virtual column, containing the ID for each row.
The oracle.sql.ROWID class i
public class DeleteNode_O1_Time {
/**
* Q 60 在O(1)时间删除链表结点
* 给定链表的头指针和一个结点指针(!!),在O(1)时间删除该结点
*
* Assume the list is:
* head->...->nodeToDelete->mNode->nNode->..
格式定义The format specifiers supported by the NSString formatting methods and CFString formatting functions follow the IEEE printf specification; the specifiers are summarized in Table 1. Note that you c
概念
AngularJS is a structural framework for dynamic web apps.
了解更多详情请见原文链接:http://www.gbtags.com/gb/share/5726.htm
Directive
扩展html,给html添加声明语句,以便实现自己的需求。对于页面中html元素以ng为前缀的属性名称,ng是angular的命名空间