Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了几个通用窗口实例,它们都有一个用于关闭事件的事件处理程序。我怎样才能得到他们的ID或Name在这个事件中?
ID
Name
就像是:
var name = this.wrapper.name();
您可以使用此代码获取窗口元素 ID
function onClose(e) { var sender = e.sender, id = sender.element[0].id; }