惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
C
Check Point Blog
M
MIT News - Artificial intelligence
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
D
Docker
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
H
Help Net Security
D
DataBreaches.Net
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
Cloudbric
Cloudbric
Blog — PlanetScale
Blog — PlanetScale
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Troy Hunt's Blog
N
News | PayPal Newsroom
V2EX - 技术
V2EX - 技术
H
Heimdal Security Blog
S
Security @ Cisco Blogs
V
Visual Studio Blog
The Last Watchdog
The Last Watchdog
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Cyber Attacks, Cyber Crime and Cyber Security
Last Week in AI
Last Week in AI
爱范儿
爱范儿
博客园 - 聂微东
S
Securelist
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
CXSECURITY Database RSS Feed - CXSecurity.com
V
Vulnerabilities – Threatpost
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
O
OpenAI News
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - 笑笑江南

sss IBATIS 延迟加载 iBATIS一对多/多对多N+1问题解决方案 - 笑笑江南 - 博客园 [转]office outlook 2007 如何设置开机自动启动 代码整洁之道 类关系 eclipse 快捷键 9-15 企业数据更新 mysql 常用函数 利用myeclipse生成Hibernate Mapping文件【转】 配置eclipse下tomcat启动参数【转】 安装svneclipse .net 开发相关工具(包)的作用 basicform 与 store gridpanel中拖拽排序 struts2 file 标签产生的一个问题 使用 ajax 提交数据 applyTo ,render, contentel,el,applytomarkup 的区别 tabpanel 添加 tab
呕吐呕吐
笑笑江南 · 2008-11-02 · via 博客园 - 笑笑江南

    doc.on('mouseover', handleOver, null, {buffer:150});

    var el = Ext.get(name+'-link');
        var tid = 0, menu, doc = Ext.getDoc();

    var handleOver = function(e, t){
               
            if(t != el.dom && t != menu.dom && !e.within(el) && !e.within(menu)){
                hideMenu();
            }

        };

在handerOver 中遍历e 的属性的时候找到了 widthin 的函数体

function (E,F){

 var D = this[F?"getRelatedTarget":"getTarget"]();

return D&& Ext.fly(E).contents(D);

}

 原来 函数可以这样调用 this["getTarget"](); 

 在 handOver 中测试 alert(e["getTarget"]());果然 能调用。

另外 :

within 函数 里用到了ext.fly 那么var handleOver = function(e, t)中的“事件对象e“就不是浏览器中的那个“原生态事件对象”

 不知道是不是看到within 这个函数潜意识了产生恐惧了。还去查看函数体,还去看e到底是个什么对象,其实本来早就猜测是个 事件对象。还是不够自信,其实在10秒钟的时间内就应该完全看透这个函数。看到within的意思就应该立即猜测。

mozilla下的e.target   相当于   ie下的event.srcElement,

但细节上有区别,后者是返回一个html   element

而e.target返回的是个节点 

e.target.id = t.id =”bd“

 ,又看错一个字母。。。b 看成 ”h“