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

推荐订阅源

T
Tenable Blog
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
H
Help Net Security
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 司徒正美
量子位
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
Scott Helme
Scott Helme
The Last Watchdog
The Last Watchdog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
AI
AI
WordPress大学
WordPress大学
Security Archives - TechRepublic
Security Archives - TechRepublic
Google Online Security Blog
Google Online Security Blog
U
Unit 42
V2EX - 技术
V2EX - 技术
MongoDB | Blog
MongoDB | Blog
Schneier on Security
Schneier on Security
博客园 - Franky
H
Heimdal Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
Cloudbric
Cloudbric
B
Blog RSS Feed
N
News | PayPal Newsroom
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
Hacker News - Newest:
Hacker News - Newest: "LLM"
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园_首页
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
雷峰网
雷峰网

博客园 - 笑笑江南

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“