IE中的事件处理细节 [英] Event handling details in IE

查看:50
本文介绍了IE中的事件处理细节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在编写IE的事件处理程序(包括捕获,几乎没有任何跨浏览器处理程序),但我无法在IE中测试我的代码(我没有Windows)。


我的具体问题是:

Currently I’m writing on an Event handler for IE (including capturing, which hardly any cross browser handler does), but I can’t test my code in IE (I don’t have Windows).

My particular question is about the following:

展开 | 选择 | Wrap | 行号

推荐答案

可以我知道你从哪里得到或引用''这个''对象。你是否为任何表格元素或对象添加任何听众?


谢谢和问候

Ramanan Kalirajan
Can I know from where you are getting or referring ''this'' object. Are you adding any listener for any form element or object?

Thanks and Regards
Ramanan Kalirajan



我可以知道你从哪里得到或引用''this''对象。
Can I know from where you are getting or referring ''this'' object.



,因为它通常用于事件处理程序, this 会自动分配给执行处理程序的元素。

as it is usual for event handlers, this is assigned automatically to the element that the handler is executed on.


您是否为任何表单元素或对象添加任何侦听器?
Are you adding any listener for any form element or object?



我可以添加任何侦听器添加到任何元素。对象的唯一约束是我将addEvent原型化为原型。作为addEventListener的函数进入Element界面。


给出单词,如果需要查看整个函数

I can add add any listener to any Element. the only constraint for the object would be that I’ll prototype the "addEvent" function as "addEventListener" into the Element interface.

give word, if you need to see the whole function


是的我需要查看函数..因为在当我尝试它时,IE正在期待这个对象。


谢谢和问候

Ramanan Kalirajan
Yes I need to see the function.. because in IE it is expecting the ''this'' object when i tried it.

Thanks and Regards
Ramanan Kalirajan


这篇关于IE中的事件处理细节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆