【发布时间】:2015-11-20 07:50:57
【问题描述】:
来自Beginning tvOS Development with TVML Tutorial。
向 DOM 添加事件时我很困惑。在这段代码中
App.onLaunch = function(options) {
//...
//inside resourceLoader.loadResource...
var doc = Presenter.makeDocument(resource);
doc.addEventListener("select", Presenter.load.bind(Presenter)); //add this line
Presenter.pushDocument(doc);
//...
}
"select" 来自哪里?
我怎么知道"select" 事件可以从某些元素(例如按钮)中触发?
有这方面的文件吗?
【问题讨论】: