日期:2014-05-19  浏览次数:20669 次

谁能给我解释一下下面代码的意思?
这里面的

if(shortcuts){
  shortcuts.on('click', function(e, t){//尤其是这里的dt和e是什么意识
  if(t = e.getTarget('dt', shortcuts)){
  e.stopEvent();
  var module = app.getModule(t.id.replace('-shortcut', ''));
  if(module){
  module.createWindow();
  }
  }
  });
  }
在线等答案啊

------解决方案--------------------
看起来是这样的
e是event对象,也就是事件对象 
t就是被单击的对象
dt应该是某个对象的id